Button¶
Namespace:
CtrlDS4
Digital controls of the controller.
The D-pad directions are buttons too, so they can be bound to pins like any other button. The library converts them to the D-pad position the DS4 reports, ignoring opposite directions pressed together.
L2 and R2 are not listed: they are analog triggers (see Trigger), and the library reports them as pressed from their analog value.
The enums of the library are unscoped on purpose, so their values read as CtrlDS4::Cross rather than CtrlDS4::Button::Cross. They share the namespace, so their value names must stay unique across all of them.
Values¶
Cross¶
Bottom face button.
Circle¶
Right face button.
Square¶
Left face button.
Triangle¶
Top face button.
L1¶
Left shoulder button.
R1¶
Right shoulder button.
L3¶
Left stick click.
R3¶
Right stick click.
Share¶
Share button, left of the touchpad.
Options¶
Options button, right of the touchpad.
PS¶
PlayStation button, below the touchpad.
Touchpad¶
Touchpad click.
DPadUp¶
D-pad up direction.
DPadDown¶
D-pad down direction.
DPadLeft¶
D-pad left direction.
DPadRight¶
D-pad right direction.