pub struct InputProp(/* private fields */);Expand description
Input device properties.
Many devices don’t set any of these properties. In that case, the program should try to determine appropriate properties heuristically, by looking at the available axes and buttons.
Implementations§
Source§impl InputProp
impl InputProp
Sourcepub const POINTER: Self
pub const POINTER: Self
Indicates that the input position on screen should be indicated via a pointer.
Should typically be set for drawing tablets and touchpads, and unset for touchscreens. Mice typically don’t set this, even though it would be more correct, but they are easy to identify since they have relative axes.
Sourcepub const DIRECT: Self
pub const DIRECT: Self
Indicates that the device’s Abs axes should be mapped to the screen directly.
In other words, the full device area should be mapped onto the full screen area. Typically set for touchscreens and drawing tablets.
Sourcepub const BUTTONPAD: Self
pub const BUTTONPAD: Self
Indicates that the device’s touchpad registers button clicks by pressing down on the surface (rather than having separate physical buttons beneath the touchpad).
pub const SEMI_MT: Self
pub const TOPBUTTONPAD: Self
pub const POINTING_STICK: Self
Sourcepub const ACCELEROMETER: Self
pub const ACCELEROMETER: Self
Set to indicate that the ABS_X, ABS_Y and ABS_Z axes report acceleration instead
of position data.
Some accelerometer devices will also send gyroscope data using ABS_RX, ABX_RY, and
ABS_RZ.