evdev-2.1.0: Bindings to libevdev
Safe HaskellNone
LanguageHaskell2010

Evdev.Uinput

Description

Create virtual input devices.

Synopsis

Documentation

data Device Source #

A uinput device.

newDevice Source #

Arguments

:: ByteString

Device name

-> DeviceOpts 
-> IO Device 

Create a new uinput device.

writeEvent :: Device -> EventData -> IO () Source #

Write a single event. Doesn't issue a sync event, so: writeEvent dev e /= writeBatch dev [e].

writeBatch :: Foldable t => Device -> t EventData -> IO () Source #

Write several events followed by a SynReport.