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 |
Produce events for a Kafka topic from a Linux joystick, which must conform to the Linux Joystick API <https://www.kernel.org/doc/Documentation/input/joystick-api.txt>.
- joystickLoop :: FilePath -> TopicConnection -> Sensor -> IO (ExitAction, LoopAction)
Event handling
:: FilePath | The path to the joystick device, e.g. "/dev/input/js0". |
-> TopicConnection | The Kafka topic name and connection information. |
-> Sensor | The name of the sensor producing events. |
-> IO (ExitAction, LoopAction) | Action to create the exit and loop actions. |
Produce events for a Kafka topic from a Linux Joystick.