XrInputSource class final

A controller or a tracked hand, as one frame reads it.

Constructors

XrInputSource({required XrHand hand, List<String> profiles = const <String>[], Map<XrControl, XrControlReading> controls = const <XrControl, XrControlReading>{}, bool isHand = false})
A source in hand, read as controls.
const

Properties

controls → Map<XrControl, XrControlReading>
What each control reads this frame.
final
hand → XrHand
Which hand holds it, or is it.
final
hashCode → int
The hash code for this object.
no setterinherited
isHand → bool
Whether this is a tracked hand rather than a held controller.
final
profiles → List<String>
The interaction profiles the runtime matched, most specific first: WebXR's profiles, OpenXR's interaction profile path's last part (oculus-touch-v3, generic-trigger-squeeze-thumbstick).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited