Expand description
Canonical interaction event and target types for Rustial.
This module defines the stable engine-owned interaction surface that later
runtime systems and renderer integrations build on top of. The types here do
not perform hit-testing by themselves; instead they normalize user-facing
interaction concepts around existing pick/query results such as PickHit.
§Scope of the v1.0 interaction types
The types in this module provide:
- event kinds (
click,mouseenter,mouseleave, …) - pointer metadata (mouse, touch, pen)
- keyboard-modifier snapshots
- stable target identity derived from
PickHit - event payloads that carry screen position, resolved geo position, and the top hit at dispatch time
Later roadmap phases can add an interaction manager and subscription model on top of these types without changing their core semantics.
Structs§
- Interaction
Event - Canonical interaction event payload.
- Interaction
Modifiers - Keyboard-modifier snapshot carried with an interaction event.
- Interaction
Target - Stable identity and provenance for an interaction target.
- Screen
Point - Logical screen-space position in pixels relative to the viewport origin.
Enums§
- Interaction
Button - Pointer button snapshot for button-aware interaction events.
- Interaction
Event Kind - Canonical interaction event kind.
- Interaction
Target Kind - Broad interaction target class.
- Pointer
Kind - Input device class that produced an interaction.