Copyright | (c) 2016-19 Brian W Bush |
---|---|
License | MIT |
Maintainer | Brian W Bush <code@functionally.io> |
Stability | Production |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
Interpret events from a Linux joystick, which must conform to the Linux Joystick API <https://www.kernel.org/doc/Documentation/input/joystick-api.txt>.
Types and values
Joystick data. See <https://www.kernel.org/doc/Documentation/input/joystick-api.txt> for details.
byteLength :: Integral a => a Source #
The number of bytes in a joystick event.
Event handling
:: ByteString | The eight bytes. |
-> Joystick | The corresponding joystick data. |
Interpret Linux Joystick bytes accoding to <https://www.kernel.org/doc/Documentation/input/joystick-api.txt>.