UI module

Input_State

structsince 0.31.0Source

The pointer, modifiers and the keyboard events a frame sees.

Fields

events: [..] Input_Event
queued, not yet applied
keys: [..] Input_Event
this frame's KEY and TEXT events, for the focused widget
mouse_x: float
mouse_y: float
mouse_down: bool
drag_start_x: float
drag_start_y: float
mods: Modifiers
clicked: u64
the node a click ended on this frame
double_clicked: u64
scroll_dx: float
scrolling this frame that no scroll container took
scroll_dy: float
cursor: Cursor_Kind

See also