evdev-1.0.0.0: Bindings to libevdev

Safe HaskellNone
LanguageHaskell2010

Evdev.Stream

Synopsis

Documentation

allDevices :: (IsStream t, Monad (t IO)) => t IO Device Source #

All valid devices (in devinput).

allEvents :: IsStream t => t IO (Device, Event) Source #

All events on all valid devices (in devinput).

makeDevices :: IsStream t => t IO RawFilePath -> t IO Device Source #

Create devices for all paths in the stream. | Will throw an exception if a path doesn't correspond to a valid input device.

readEvents :: Device -> SerialT IO Event Source #

Read all events from a device.

readEventsMany :: IsStream t => AsyncT IO Device -> t IO (Device, Event) Source #

Concurrently read events from multiple devices.