Module mouse_binding

Source

Structs§

MouseBinding
A MouseBinding represents a connection to a mouse input device.
MouseDeviceDescriptor
MouseEvent
A MouseEvent represents a pointer event with a specified phase, and the buttons involved in said phase. The supported phases for mice include Up, Down, and Move.
RelativeLocation
A RelativeLocation contains the relative mouse pointer location at the time of a pointer event.
WheelDelta
A WheelDelta contains raw wheel delta from driver or gesture arena and scaled wheel delta in physical pixels.

Enums§

MouseLocation
A MouseLocation represents the mouse pointer location at the time of a pointer event.
MousePhase
PrecisionScroll
Flag to indicate the scroll event is from device reporting precision delta.
RawWheelDelta
RawWheelDelta is the wheel delta from driver or gesture arena.

Functions§

get_u32_from_buttons
Returns a u32 representation of buttons, where each u8 of buttons is an id of a button and indicates the position of a bit to set.

Type Aliases§

MouseButton