Module focus

Source
Expand description

Determines which entities are being hovered by which pointers.

The most important type in this module is the HoverMap, which maps pointers to the entities they are hovering over.

Structs§

HoverMap
The source of truth for all hover state. This is used to determine what events to send, and what state components should be in.
PreviousHoverMap
The previous state of the hover map, used to track changes to hover state.

Enums§

PickingInteraction
A component that aggregates picking interaction state of this entity across all pointers.

Functions§

update_focus
Coalesces all data from inputs and backends to generate a map of the currently hovered entities. This is the final focusing step to determine which entity the pointer is hovering over.
update_interactions
Uses pointer events to update PointerInteraction and PickingInteraction components.