| Copyright | (c) Francesco Gazzetta, 2016 |
|---|---|
| License | MIT |
| Maintainer | francygazz@gmail.com |
| Stability | experimental |
| Safe Haskell | Safe |
| Language | Haskell98 |
Graphics.Shine.Input
Description
Datatypes representing inputs.
Documentation
The state of a button on the keyboard
The four key modifiers
The three mouse buttons
Datatype representing all possible inputs
toMouseBtn :: Word -> Maybe MouseBtn Source
Convert a js mouse button identifier to the corresponding datatype
toKeyState :: Bool -> KeyState Source
Convert a bool (from js) to a keystate