GPC Developer Guides
...
Constants
Controller

PlayStation 4

This is a list of all PlayStation 4 input identifiers, values, and ranges.

These also work for the PS5 DualSense controller.

Name

Description

Value

Range

PS4_PS

PS/Guide Button

0

0 | 100

PS4_SHARE

Share Button

1

0 | 100

PS4_OPTIONS

Options Button

2

0 | 100

PS4_R1

Right Bumper

3

0 | 100

PS4_R2

Right Trigger

4

0 ~ 100

PS4_R3

Right Stick

5

0 | 100

PS4_L1

Left Bumper

6

0 | 100

PS4_L2

Left Trigger

7

0 ~ 100

PS4_L3

Left Stick

8

0 | 100

PS4_RX

Right Stick X-Axis (left/right)

9

-100 ~ 100

PS4_RY

Right Stick Y-axis (up/down)

10

-100 ~ 100

PS4_LX

Light Stick X-axis (left/right)

11

-100 ~ 100

PS4_LY

Left Stick Y-axis (up/down)

12

-100 ~ 100

PS4_UP

D-Pad Up

13

0 | 100

PS4_DOWN

D-Pad Down

14

0 | 100

PS4_LEFT

D-Pad Left

15

0 | 100

PS4_RIGHT

D-Pad Right

16

0 | 100

PS4_TRIANGLE

Triangle Button

17

0 | 100

PS4_CIRCLE

Circle Button

18

0 | 100

PS4_CROSS

Cross Button

19

0 | 100

PS4_SQUARE

Square Button

20

0 | 100

PS4_ACCX

ACCX-axis (left/right)

21

-25 ~ 25

PS4_ACCY

ACCY-axis (up/down)

22

-25 ~ 25

PS4_ACCZ

ACCZ

23

-25 ~ 25

PS4_GYROX

GYROX-axis (left/right)

24

-25 ~ 25

PS4_GYROY

GYROY-axis (up/down)

25

-25 ~ 25

PS4_GYROZ

GYROZ

26

-25 ~ 25

PS4_TOUCH

Touch Button

27

0 | 100

PS4_FINGER1X

FINGER1X-axis (left/right)

28

-100 ~ 100

PS4_FINGER1Y

FINGER1Y-axis (up/down)

29

-100 ~ 100

PS4_FINGER1

FINGER1

30

0 | 100

PS4_FINGER2X

FINGER2X-axis (left/right)

31

-100 ~ 100

PS4_FINGER2Y

FINGER2Y-axis (up/down)

32

-100 ~ 100

PS4_FINGER2

FINGER2

33

0 | 100

Value range explanation:

Range

Meaning

0 | 100

Either 0 or 100

0 ~ 100

Any value between 0 and 100

-100 ~ 100

Any value between -100 and 100

Note: for accelerometers, every 25% represents 1G