keyboardMouseCallback

type KeyboardMouseCallback = Key -> KeyState -> Modifiers -> Position -> IO ()
GLUT Graphics.UI.GLUT.Callbacks.Window
A keyboard/mouse callback
keyboardMouseCallback :: SettableStateVar (Maybe KeyboardMouseCallback)
GLUT Graphics.UI.GLUT.Callbacks.Window
Controls the keyboard/mouse callback for the current window. The keyboard/mouse callback for a window is called when the state of a key or mouse button changes. The callback parameters indicate the new state of the key/button, the state of the keyboard modifiers, and the mouse location in window relative coordinates.