ControllerAction
Snapshot of input actions for a single controller.
Includes button pressed/touched states, analog values for trigger/grip, and the 2D thumbstick vector. All fields represent the current frame and may be identical to the previous frame; consumers should diff frames themselves if change detection is required. Value ranges: triggerValue/gripValue in 0.0, 1.0; thumbstick vector in -1.0, 1.0.
Constructors
Properties
Whether the A button (on right controller) is pressed.
Whether the A button (on right controller) is touched.
Whether the B button (on right controller) is pressed.
Whether the B button (on right controller) is touched.
Whether the grip is pressed.
Whether the thumbstick is pressed.
Whether the thumbstick is touched.
2D thumbstick value; see ThumbstickValue. Components are in -1.0, 1.0.
Whether the trigger button is pressed.
Whether the trigger button is touched.
Analog value of the trigger in the range 0.0, 1.0.
Whether the X button (on left controller) is pressed.
Whether the X button (on left controller) is touched.
Whether the Y button (on left controller) is pressed.
Whether the Y button (on left controller) is touched.