Skip to main content

Module interaction

Module interaction 

Source
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§

InteractionEvent
Canonical interaction event payload.
InteractionModifiers
Keyboard-modifier snapshot carried with an interaction event.
InteractionTarget
Stable identity and provenance for an interaction target.
ScreenPoint
Logical screen-space position in pixels relative to the viewport origin.

Enums§

InteractionButton
Pointer button snapshot for button-aware interaction events.
InteractionEventKind
Canonical interaction event kind.
InteractionTargetKind
Broad interaction target class.
PointerKind
Input device class that produced an interaction.