ControllerState constructor

ControllerState({
  1. required ControllerHand hand,
  2. Transform3D? transform,
  3. bool triggerPressed = false,
  4. double triggerValue = 0,
  5. bool gripPressed = false,
  6. double gripValue = 0,
  7. bool primaryButtonPressed = false,
  8. bool secondaryButtonPressed = false,
  9. bool thumbstickPressed = false,
  10. Vector2? thumbstick,
  11. 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();