ControllerState constructor
ControllerState({
- required ControllerHand hand,
- Transform3D? transform,
- bool triggerPressed = false,
- double triggerValue = 0,
- bool gripPressed = false,
- double gripValue = 0,
- bool primaryButtonPressed = false,
- bool secondaryButtonPressed = false,
- bool thumbstickPressed = false,
- Vector2? thumbstick,
- bool connected = false,
Implementation
ControllerState({
required this.hand,
Transform3D? transform,
this.triggerPressed = false,
this.triggerValue = 0,
this.gripPressed = false,
this.gripValue = 0,
this.primaryButtonPressed = false,
this.secondaryButtonPressed = false,
this.thumbstickPressed = false,
Vector2? thumbstick,
this.connected = false,
}) : transform = transform ?? Transform3D(),
thumbstick = thumbstick ?? Vector2.zero();