Crate input_linux

Source
Expand description

Userspace bindings to the Linux evdev and uinput subsystems.

Start by looking at the EvdevHandle and UInputHandle types.

Re-exports§

pub use crate::evdev::EvdevHandle;
pub use crate::uinput::UInputHandle;
pub use crate::bitmask::Bitmask;
pub use input_linux_sys as sys;

Modules§

bitmask
Bitmasks are a set of bits that can be indexed and queried by the values of various enum types.
enum_iterator
Iteration over enum values.
evdev
An interface to the Linux kernel’s event devices (/dev/input/*).
uinput
An interface to the Linux uinput kernel module that can be used to create virtual input devices.

Structs§

AbsoluteEvent
Events that occur when the state of an absolute axis is changed.
AbsoluteInfo
Describes the capabilities and constraints of an input device’s absolute axis.
AbsoluteInfoSetup
A descriptor used to create a virtual uinput absolute axis.
AutorepeatEvent
An event that configures the autorepeat behaviour of the input device.
EventCodeccodec
EventTime
An event timestamp.
ForceFeedbackEvent
An event that configures a force feedback effect.
ForceFeedbackStatusEvent
An event that indicates the status of a force feedback effect.
InputEvent
A generic event.
InputId
Identifies an input device.
KeyEvent
An event that indicates the state of a key has changed.
KeyState
Key event value states.
LedEvent
An event that indicates whether the specified LED should turn on/off.
MiscEvent
Miscellaneous events.
RangeError
Indicates that a value or event type code was out of range.
RelativeEvent
Events that occur when the state of a relative axis is changed.
SoundEvent
An event that indicates the device should play a specified sound.
SwitchEvent
Special switch events.
SynchronizeEvent
Synchronization events are used by evdev to group events or convey other out-of-band information.
UInputEvent
A special event type used to send force-feedback events to uinput.

Enums§

AbsoluteAxis
Absolute axes.
AutorepeatKind
Autorepeat values.
Event
An owned and typed input event.
EventKind
Event types
EventMut
A mutable reference to an input event.
EventRef
A reference to an input event.
ForceFeedbackKind
Force feedback events.
ForceFeedbackStatusKind
Force feedback status events.
InputProperty
Device properties and quirks.
Key
Keys and Buttons
LedKind
LEDs.
MiscKind
Miscellaneous events.
RelativeAxis
Relative axes.
SoundKind
Sounds
SwitchKind
Switch events.
SynchronizeKind
Synchronization events.
UInputKind
UInput feedback events.

Traits§

GenericEvent
A generic linux input event.