Skip to main content

Module interaction

Module interaction 

Source

Structs§

Chord
One key with its modifiers — what a user presses.
Input
One frame’s input as a host states it: the pointer’s raw events and the keys beside them.
Interaction
Per-frame input state passed to the canvas drawing closure.
Keys
The keys a frame carries beside the pointer, as the host read them: scoped by the host’s own focus rules, since which widget holds the keyboard is the toolkit’s to know. Each flag lands on its namesake in Interaction.
Press
A primary-button press being held, carrying where (world space) it began.

Enums§

Button
Camera
Whether the camera is being worked — a drag pan, or a two-finger pan/pinch in flight.
Event
Key
The keys a chord can name. Not a keyboard: the keys this app actually binds, so a binding table cannot name one no host knows how to read.
Modifiers
Which modifiers a chord wants held. Three, because three are bound: none, the platform command modifier (Ctrl; ⌘ on mac), and that with Shift.
Raw
What a host says about the pointer, before anything is made of it: the motions and the button edges, in screen space, in the order they happened. Resolving them into an Event — a click, a drag, a hover — is the core’s, so every host resolves them the same way.