PS5 DS5 Dualsense controller on Linux button axis mapping
z0z0z opened this issue · 1 comments
z0z0z commented
I manually figured out the mappings myself through trial and error, and it took me a couple hours, so here they are.
B0 = X
B1 = CIRCLE
B2 = SQUARE
B3 = TRIANGLE
B4 = SELECT
B5 = PS LOGO
B6 = START
B7 = L3
B8 = R3
B9 = L1
B10 = R1
B11 = DPAD UP
B12 = DPAD DOWN
B13 = DPAD LEFT
B14 = DPAD RIGHT
B15 = GUIDE BUTTON
# Axis for right analog stick
A2+ = RIGHT
A2- = LEFT
A3+ = DOWN
A3- = UP
# The L2/R2 triggers
A4+ = L2
A5+ = R2
So here's an example of my config.
version = 2.000000
mode = 0
device = 0
name = "PS5 Controller"
plugged = True
plugin = 2
mouse = False
MouseSensitivity = "2.00,2.00"
AnalogDeadzone = "4096,4096"
AnalogPeak = "32768,32768"
DPad R = "button(14)"
DPad L = "button(13)"
DPad D = "button(12)"
DPad U = "button(11)"
Start = "button(6)"
Z Trig = "button(9)"
B Button = "button(2)"
A Button = "button(0)"
C Button R = "axis(2+)"
C Button L = "axis(2-)"
C Button D = "axis(3+)"
C Button U = "axis(3-)"
R Trig = "button(10) axis(5+)"
L Trig = "axis(4+)"
Mempak switch = ""
Rumblepak switch = ""
X Axis = "axis(0-,0+)"
Y Axis = "axis(1-,1+)"
This isn't really an issue but more to help future people. Feel free to close idc, just want it to get indexed by the issue tracker and search engines.
richard42 commented
Thanks for this; I've added it to our auto-config database.