Skip to main content

Module input

Module input 

Source
Expand description

The platform-independent input events an application receives.

App::handle_event takes these events between frames. The windowing layer translates the events of the operating system into them, and tests inject them directly, so widget and application code never sees a windowing library. Positions are logical pixels, with the origin at the top left of the window.

Structs§

KeyEvent
A keyboard key that was pressed or released.
Modifiers
The keyboard modifiers held during an input event.

Enums§

Handled
Whether a key event was taken by a handler.
InputEvent
One input event, translated from the windowing system or injected by a test.
Key
A key on the keyboard, by meaning rather than by position.
PointerButton
One of the pointer buttons an event can refer to.