Module input_device

Source

Structs§

InputDeviceStatus
An InputDeviceStatus is tied to an InputDeviceBinding and provides properties detailing its Inspect status.
InputEvent
An InputEvent holds information about an input event and the device that produced the event.
UnhandledInputEvent
An UnhandledInputEvent is like an InputEvent, except that the data represents an event that has not been handled.

Enums§

Handled
InputDeviceDescriptor
An [InputDescriptor] describes the ranges of values a particular input device can generate.
InputDeviceEvent
An InputDeviceEvent represents an input event from an input device.
InputDeviceType
Generic types of supported input devices.

Statics§

INPUT_REPORT_PATH
The path to the input-report directory.

Traits§

InputDeviceBinding
An InputDeviceBinding represents a binding to an input device (e.g., a mouse).

Functions§

event_time_or_now
Returns the event time if it exists, otherwise returns the current time.
get_device_binding
Returns a new InputDeviceBinding of the given device type.
get_device_from_dir_entry_path
Returns a proxy to the InputDevice in entry_path if it exists.
initialize_report_stream
Initializes the input report stream for the device bound to device_proxy.
is_device_type
Returns true if the device type of input_device matches device_type.