kafka-device-glut-1.0.0.0: GLUT events via a Kafka message broker

Copyright(c) 2016-19 Brian W Bush
LicenseMIT
MaintainerBrian W Bush <code@functionally.io>
StabilityProduction
PortabilityPortable
Safe HaskellNone
LanguageHaskell2010

Network.UI.Kafka.GLUT

Contents

Description

Synopsis

Event handling.

data GlutCallback Source #

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.

glutLoop Source #

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.