evdev-2.2.0: Bindings to libevdev
Safe HaskellSafe-Inferred
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.

Re-exports from Evdev

data AbsInfo Source #

Instances

Instances details
Show AbsInfo Source # 
Instance details

Defined in Evdev.LowLevel

data Event Source #

An input event, including the timestamp.

Constructors

Event 

Instances

Instances details
Show Event Source # 
Instance details

Defined in Evdev

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Eq Event Source # 
Instance details

Defined in Evdev

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Ord Event Source # 
Instance details

Defined in Evdev

Methods

compare :: Event -> Event -> Ordering #

(<) :: Event -> Event -> Bool #

(<=) :: Event -> Event -> Bool #

(>) :: Event -> Event -> Bool #

(>=) :: Event -> Event -> Bool #

max :: Event -> Event -> Event #

min :: Event -> Event -> Event #

data EventData Source #

An input event, without the timestamp. Each constructor corresponds to one event type, except for UnknownEvent.

Instances

Instances details
Show EventData Source # 
Instance details

Defined in Evdev

Eq EventData Source # 
Instance details

Defined in Evdev

Ord EventData Source # 
Instance details

Defined in Evdev

data KeyEvent Source #

The status of a key.

Constructors

Released 
Pressed 
Repeated 

Instances

Instances details
Bounded KeyEvent Source # 
Instance details

Defined in Evdev

Enum KeyEvent Source # 
Instance details

Defined in Evdev

Read KeyEvent Source # 
Instance details

Defined in Evdev

Show KeyEvent Source # 
Instance details

Defined in Evdev

Eq KeyEvent Source # 
Instance details

Defined in Evdev

Ord KeyEvent Source # 
Instance details

Defined in Evdev

newtype EventCode Source #

A direct representation of the code field of the C input_event, for when there is no obvious meaningful sum type.

Constructors

EventCode Word16 

newtype EventValue Source #

A direct representation of the value field of the C input_event, for when there is no obvious meaningful sum type.

Constructors

EventValue Int32