Graphics.UI.Fungen.Input
Description
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
Constructors
Char Char | |
SpecialKey SpecialKey | |
MouseButton MouseButton |
data SpecialKey
Special keys
Constructors
KeyF1 | |
KeyF2 | |
KeyF3 | |
KeyF4 | |
KeyF5 | |
KeyF6 | |
KeyF7 | |
KeyF8 | |
KeyF9 | |
KeyF10 | |
KeyF11 | |
KeyF12 | |
KeyLeft | |
KeyUp | |
KeyRight | |
KeyDown | |
KeyPageUp | |
KeyPageDown | |
KeyHome | |
KeyEnd | |
KeyInsert | |
KeyNumLock | |
KeyBegin | |
KeyDelete |
Instances
data MouseButton
Mouse buttons, including a wheel
Constructors
LeftButton | |
MiddleButton | |
RightButton | |
WheelUp | |
WheelDown | |
AdditionalButton Int |
Instances
funBinding :: [InputConfig t s u v] -> Game t s u v -> IO (KeyBinder, StillDownHandler)Source