| 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 |
System.Hardware.Linux.SpaceNav
Contents
Description
Interpret events from a SpaceNavigator <http://www.3dconnexion.com/products/spacemouse/spacenavigator.html>.
Synopsis
- data SpaceNav
- = SpaceNavButton { }
- | SpaceNavAnalog { }
- | SpaceNavNull
- byteLength :: Integral a => a
- interpretSpaceNav :: ByteString -> SpaceNav
- readSpaceNav :: FilePath -> IO [SpaceNav]
Types and sizes
byteLength :: Integral a => a Source #
The number of bytes in an input event.
Event handling
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>.