VrInputEvent class
Unified spatial input event.
Events can be reused by VrInputArbiter's pool. Consumers must treat an event received from the arbiter as borrowed memory: read it synchronously and do not retain it after the callback returns. Code that needs to keep an event should copy the required scalar values instead.
Constructors
-
VrInputEvent({required VrInputType type, required VrInputSource source, String? targetId, Map<
String, dynamic> ? data, bool active = true, DateTime? timestamp})
Properties
- active → bool
-
Whether the source is actively manipulated.
no setter
-
data
→ Map<
String, dynamic> ? -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → VrInputSource
-
no setter
- targetId → String?
-
no setter
- timestamp → DateTime
-
Wall-clock timestamp for compatibility and diagnostics.
no setter
- timestampMicrosecondsSinceEpoch → int
-
Allocation-free timestamp used by high-frequency input paths.
no setter
- type → VrInputType
-
no setter
Methods
-
clearForReuse(
) → void - Drops references before this event returns to a pool.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetForReuse(
{required VrInputType type, required VrInputSource source, required int timestampMicrosecondsSinceEpoch, String? targetId, Map< String, dynamic> ? data, bool active = true}) → void - Reinitializes this instance for an event pool.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited