This patch changes Linux's
joydev module in order to make certain PlayStation dance pads, coupled with certain PlayStation/USB adapters, work with StepMania, fixing the infamous axis problem. I know for sure that it works with my dance pad and my adapter (model Pu120T) in the Linux versions listed below. Two dance pads are supported simultaneously.
Download the file that best matches your kernel version, but notice that version 1.1 of the patch applies the fix to whatever device Linux recognizes as a joystick, whereas version 1.2 applies the fix selectively.
- Apply this patch to a properly configured Linux source tree:
patch -Np1 -i joydev-dancepad.patch
drivers/input/joydev.cso that the macros
DANCEPAD_VENDORcorrespond to your adapter. You can find which values to use with, e.g.,
- Compile and install
- When using the module, make sure StepMania is reading from
/dev/input/js*, and not
/dev/input/event*. You could remove the latter in order to make sure it will read from the correct device.
If the steps above sound difficult, you may want to read the answers to this question. Some tools that may come in handy are
I would like to thank Jozef Riha for his help in testing version 1.2 of the patch.