Skip to main content

Crate ustreamer_input

Crate ustreamer_input 

Source
Expand description

Browser input event bridge.

Decodes compact binary input events from the browser and maps them to abstract application actions. Consumers define their own action types and mapping logic; this crate provides the raw event decode and a default mapper with common 3D/2D interaction patterns.

Structs§

InputMapper
Maps raw browser input events to application actions based on the current interaction mode.

Enums§

AppAction
Abstract application action produced by the input mapper. These cover common interaction patterns for 3D/2D applications. Consumers can extend or replace these with domain-specific actions.
InteractionMode
Interaction modes that determine how pointer drags are interpreted.