Skip to main content

push_event_from_hid

Function push_event_from_hid 

Source
pub fn push_event_from_hid(
    dx: i16,
    dy: i16,
    dz: i8,
    left: bool,
    right: bool,
    middle: bool,
)
Expand description

Push a mouse event from USB HID or other non-PS/2 source.

Must be called from task context only. Updates absolute position and enqueues the event for consumption by read_event(). Used by hid::poll_all() when USB HID mouse reports arrive.