ButtonInput for L1.
ButtonInput for L2. Supports pressure sensitivity.
ButtonInput for L3 (when you push in the left analog stick).
SliderInput for the X-axis of the left analog stick. -1 = fully left, +1 = fully right
SliderInput for the Y-axis of the left analog stick. -1 = fully up, +1 = fully down
How far away from center the L3 analog stick is. Value ranges from 0 to 1.
The angle of the L3 analog stick, measured clockwise in degrees from the stick pointing directly upwards. Values fall in the range (-180, 180]
ButtonInput for PS button.
ButtonInput for R1.
ButtonInput for R2. Supports pressure sensitivity.
ButtonInput for R3 (when you push in the right analog stick).
SliderInput for the X-axis of the right analog stick. -1 = fully left, +1 = fully right
SliderInput for the Y-axis of the right analog stick. -1 = fully up, +1 = fully down
How far away from center the R3 analog stick is. Value ranges from 0 to 1.
The angle of the R3 analog stick, measured clockwise in degrees from the stick pointing directly upwards. Values fall in the range (-180, 180]
The collection of all axes on the gamepad.
The collection of all buttons on the gamepad.
ButtonInput for Circle.
ButtonInput for Down on the D-Pad.
ButtonInput for Left on the D-Pad.
ButtonInput for Options.
ButtonInput for Right on the D-Pad.
ButtonInput for Share.
ButtonInput for Square.
ButtonInput for touchpad.
ButtonInput for Triangle.
Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.
ButtonInput for Up on the D-Pad.
ButtonInput for X.
Generated using TypeDoc
The PS4Controller class models a single PS4 controller connected to the computer, providing ButtonInput & SliderInput properties for the various inputs on the controller.