chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

default mapping names and ordering wrong for axes #100

Open gomisensei opened 8 years ago

gomisensei commented 8 years ago

so, i noticed that the axes order seems to be wierd, not sure if this is intended, but the order of the axes in jstest has the left and right analog triggers (named Z and Rx) default mapped between left stick vertical and horizontal (named Z and Rz). The last 3 axes are unnamed, they are the acceleration sensors, X Y Z,

Also, the 2 analog triggers, (which on the controller are labelled L2 and R2) go from - when released, to 0 when half pressed, to + at full, while also registering as buttons.

gomisensei commented 8 years ago

this information is based on jstest... the --dump-reports option seems to show everything correctly...

timrose- commented 7 years ago

I can also confirm this.

uinput.py contains references to the triggers under the axes mapping (lines 73 and 74). Tried removing these lines but appear to of broke it further...

How can I map these to behave as buttons instead of axes?