Copyright | (c) 2015 Brian W Bush |
---|---|
License | MIT |
Maintainer | Brian W Bush <consult@brianwbush.info> |
Stability | Stable |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
Functions for utilizing keyboard input.
- keyboardPosition :: Num a => Vector3 a -> IORef (Vector3 a) -> KeyboardMouseCallback
Functions
:: Num a | |
=> Vector3 a | The amount to incrementdecrement the xy/z coordinate for each key press. |
-> IORef (Vector3 a) | A reference to the current position. |
-> KeyboardMouseCallback | The GLUT keyboard/mouse callback. |
Construct a callback for translating key presses into three dimensional movement.
- The plus and minus keys, respectively, increment and decrement the y coordinate.
- The right and left keys, respectively, increment and decrement the x coordinate.
- The down and up keys, respectively, increment and decrment the z coordinate.