pub enum CapturedInput {
Gesture(ButtonId, GestureDirection),
ButtonDown(ButtonId),
Scroll {
increments: i16,
resolution: WheelResolution,
},
ThumbwheelDirection {
positive_is_forward: bool,
},
ButtonUp(ButtonId),
ButtonPulse(ButtonId),
}Expand description
One input captured from the active device.
Variants§
Gesture(ButtonId, GestureDirection)
A completed swipe (or tap click) from a diverted gesture source, tagged with the source control so dispatch resolves it against that button’s own direction map.
ButtonDown(ButtonId)
A diverted button’s physical down edge.
Scroll
Thumb-wheel rotation to re-synthesise on the configured scroll axis. Emitted while the wheel is diverted (click bound, rotation rebound, or sensitivity changed).
Fields
increments: i16Rotation in the wheel’s diverted increments. Positive is always
physical forward/up: arming normalises the model-specific polarity
reported by 0x2150 default_dir.
resolution: WheelResolutionWhat one revolution measures in each mode, so the dispatcher can scale those increments back to the wheel’s native scroll amount instead of scrolling by however finely this wheel happens to report.
ThumbwheelDirection
The un-inverted polarity learned while arming a thumb wheel. This is a one-time session fact rather than user input; the agent records it for native horizontal-wheel events that the Windows hook cannot attribute to a device.
ButtonUp(ButtonId)
A diverted button’s physical up edge.
ButtonPulse(ButtonId)
An instantaneous firmware-reported tap with no observable hold duration, such as the thumb-wheel touch sensor.