https://bugs.winehq.org/show_bug.cgi?id=56151
Bug ID: 56151 Summary: Huijia USB Gamepad gets detected incorrectly as Huijia SNES Controller Product: Wine Version: 8.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: dinput Assignee: wine-bugs@winehq.org Reporter: minion.procyk@gmail.com Distribution: ---
Huijia USB Gamepad gets detected incorrectly as Huijia SNES Controller. In addition to the name being incorrect, the mappings are incomplete AND incorrect.
- joystick axes acts as if it's a D-PAD (as if it's a SNES controller) - the c-buttons do not seem to do anything at all - the d-pad does not seem to do anything at all - the A, B, START, L, R, Z buttons seem to work
vs in wine-5.4
- joystick axes act as 2 joystick axes, X and Y - the c-buttons work (they are detected as separate axes ABS_Z and ABS_RZ in jscal i wish I knew if this was correct or not, imho they probably should be buttons) - the d-pad works - all buttons work
Additional notes: This is a usb n64 gamepad adapter I have used for a long time in wine successfully, and admittedly have been sticking to an old wine version (wine 5.4) to ensure stability. There's been a lot of work related to input between now and wine 5.4 so there's a myriad of nuance differences amongst versions. I am highlighting 5.4 as the only version that gets it totally correct for this controller/and controller adapter
I have verified in jscal and evdev-joystick that all buttons are registering in the controller properly both in /dev/input/event%d and /dev/input/js%d
I'm happy to investigate more if someone can nudge me in a direction.