| Copyright | (c) 2016-19 Brian W Bush |
|---|---|
| License | MIT |
| Maintainer | Brian W Bush <code@functionally.io> |
| Stability | Production |
| Portability | Portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.UI.Kafka.GLUT
Contents
Description
Produce events on a Kafka topic from GLUT callbacks <https://hackage.haskell.org/package/GLUT-2.7.0.10/docs/Graphics-UI-GLUT-Callbacks-Window.html>.
- data GlutCallback
- glutLoop :: TopicConnection -> Sensor -> [GlutCallback] -> IO (ExitAction, LoopAction)
Event handling.
data GlutCallback Source #
Types of GLUT callbacks. See <https://hackage.haskell.org/package/GLUT-2.7.0.10/docs/Graphics-UI-GLUT-Callbacks-Window.html> for more details.
Constructors
| KeyboardMouse | Key presses and mouse button clicks. |
| Motion | Mouse motion while a button is depressed. |
| PassiveMotion | Mouse motion. |
| Spaceball | Spaceball tracking and button clicks. |
| Joystick | Joystick tracking and button clicks. |
Arguments
| :: TopicConnection | The Kafka topic name and connection information. |
| -> Sensor | The name of the sensor producing events. |
| -> [GlutCallback] | Which callbacks to enable. |
| -> IO (ExitAction, LoopAction) | Action to create the exit and loop actions. |
Produce events for a Kafka topic from GLUT callbacks <https://hackage.haskell.org/package/GLUT-2.7.0.10/docs/Graphics-UI-GLUT-Callbacks-Window.html>.