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