CursorEvent

Type Alias CursorEvent 

Source
pub type CursorEvent = PointerChange;
Expand description

Backward-compatible alias for older naming.

Aliased Type§

pub struct CursorEvent {
    pub timestamp: Instant,
    pub pointer_id: u64,
    pub content: CursorEventContent,
    pub gesture_state: GestureState,
    /* private fields */
}

Fields§

§timestamp: Instant

Timestamp indicating when this event occurred.

§pointer_id: u64

Pointer identifier for this input stream.

§content: CursorEventContent

The specific type and data of this cursor event.

§gesture_state: GestureState

Classification of the gesture associated with this event.

Events originating from touch scrolling will mark this as GestureState::Dragged, allowing downstream components to distinguish tap candidates from scroll gestures.