TeamRizu / OutFox

The Bug Reporting Repository for OutFox LTS 0.4, Alpha V and Steam Early Access Builds
https://projectoutfox.com
Apache License 2.0
187 stars 3 forks source link

[Feature Request] handle left+right combo from PS2 to USB converter #527

Closed kuroyi closed 2 years ago

kuroyi commented 2 years ago

Please Select the game mode your feature request is about.

All Game Modes

Is your feature request related to a problem?

I have installed on a fresh Ubuntu 20.04 system with kernel 5.15 and plugged in my old dance pads via an OSTENT PS2 to USB adapter from amazon (device id 0810:0001) . However, I ran into the apparently famous up+down issue preventing successful gameplay. I saw that OutFox uses hidapi for input so I investigated what the USB adapter is actually outputting to see if it is faulty or possibly usable. I believe OutFox could be modified to work around the issue. Here is the raw data from hidapi:

No buttons pressed: 01 7F 7F 7F 7F 0F 00 00 40 00 00 00 Left only: 01 7F 7F 00 7F 0F 00 00 40 00 00 00 Right only: 01 7F 7F FF 7F 0F 00 00 40 00 00 00 Left + Right: 01 7F 7F 80 7F 0F 00 00 40 00 00 00 Up 01 7F 7F 7F 00 0F 00 00 40 00 00 00 Down 01 7F 7F 7F FF 0F 00 00 40 00 00 00 Up + Down 01 7F 7F 7F 80 0F 00 00 40 00 00 00

Describe the solution you'd like

I would like OutFox to process the output of the PS2 to USB converter for the dance pad and handle the left+right and up+down combinations.

Describe alternatives you've considered

There is apparently a linux kernel patch to modify the usb output.

Additional context

No response