This FunGEn module controls the user input (mouse, keyboard, joystick...)
- type InputConfig t s u v = (Key, KeyEvent, IOGame t s u v ())
- data Key
- data KeyEvent
- data SpecialKey
- data MouseButton
- = LeftButton
- | MiddleButton
- | RightButton
- | WheelUp
- | WheelDown
- | AdditionalButton Int
- funBinding :: [InputConfig t s u v] -> Game t s u v -> IO (KeyBinder, StillDownHandler)
Documentation
data Key
A generalized view of keys
data SpecialKey
Special keys
data MouseButton
Mouse buttons, including a wheel
funBinding :: [InputConfig t s u v] -> Game t s u v -> IO (KeyBinder, StillDownHandler)Source