kafka-device-spacenav-1.0.0.0: Linux SpaceNavigator events via a Kafka message broker

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

System.Hardware.Linux.SpaceNav

Contents

Description

Synopsis

Types and sizes

data SpaceNav Source #

SpaceNavigator data.

Constructors

SpaceNavButton 

Fields

SpaceNavAnalog 

Fields

SpaceNavNull 

Instances

Eq SpaceNav Source # 
Ord SpaceNav Source # 
Read SpaceNav Source # 
Show SpaceNav Source # 
Generic SpaceNav Source # 

Associated Types

type Rep SpaceNav :: * -> * #

Methods

from :: SpaceNav -> Rep SpaceNav x #

to :: Rep SpaceNav x -> SpaceNav #

ToJSON SpaceNav Source # 
FromJSON SpaceNav Source # 
Binary SpaceNav Source # 

Methods

put :: SpaceNav -> Put #

get :: Get SpaceNav #

putList :: [SpaceNav] -> Put #

Serialize SpaceNav Source # 
type Rep SpaceNav Source # 

byteLength :: Integral a => a Source #

The number of bytes in an input event.

Event handling

interpretSpaceNav Source #

Arguments

:: ByteString

The bytes from devinput.

-> SpaceNav

The corresponding SpaceNavigator data.

Interpret SpaceNavigator event bytes on a Linux input deviceThis interpretation is based on <https://github.com/vrpn/vrpn/blob/master/vrpn_3DConnexion.h> and <https://github.com/vrpn/vrpn/blob/master/vrpn_3DConnexion.c>.

readSpaceNav Source #

Arguments

:: FilePath

The SpaceNavigator device, e.g., "/dev/input/spacenav0".

-> IO [SpaceNav]

Action to read the SpaceNavigator data.

Read a stream of SpaceNavigator data.