|
|
|
|
|
| Description |
| Implements GLUT callbacks concerned with controlling the world view.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| callbackKeyMouse |
| :: IORef DisplayState | The current state.
| | -> Key | The key/button that was pressed/released.
| | -> KeyState | Whether the key or button went Up or Down.
| | -> Modifiers | Whether CTRL or SHIFT modifier keys were active.
| | -> Position | The position of the mouse when this event occured.
| | -> IO () | | | GLUT calls back on this function when a key or mouse button has been pressed or released.
It inspects the event and modifies the state accordingly.
|
|
|
| callbackMotion :: IORef DisplayState -> Position -> IO () |
| GLUT calls back on this function when the mouse moves while a key or button
has been pressed. It updates the state to manage translation or rotation of the
world view.
|
|
| callbackIdle :: IORef DisplayState -> IO () |
| GLUT calls back on this function when it's in an idle state.
It calls GLUT.postRedisplay, which instructs GLUT to call the display
callback in the next iteration.
|
|
| Produced by Haddock version 0.7 |