https://bugs.winehq.org/show_bug.cgi?id=52177
--- Comment #8 from Jan "Yenya" Kasprzak kas@yenya.net --- In reply to comment #4:
2RĂ©mi Bernon, thanks for many hints. What I tried so far:
- "wine control joy.cpl" can see my dancepad correctly. In the "Test joystick" tab, it displays 10 buttons (which is correct), and the point in the [X,Y] square moves as I press the first four buttons. Simultaneous button presses are correctly reported in the [Buttons] section, but obviously not in the [X,Y] square: left+right leads to the right input detected only, and for up+down only up movement is reported in the X-Y axes. Which is what I observe also in the game. However, the game does not see any of the other buttons at all.
- I downloaded and compiled sdl2-gamepad-mapper-v0.0.4 and tried to map my dancepad with it. It produced something like this:
030061ea776600001188000000010000,WiseGroup.,Ltd X-PAD, Extreme Dance Pad (http://www.ddr.cz),a:b1,b:b3,x:b0,y:b2,leftshoulder:b9,rightshoulder:b8,left...,
This is unusable as SDL_GAMECONTROLLERCONFIG environment variable content, as this variable uses comma for separating values, but the controller name itself has comma in its name. I guessed that the controller name (as opposed to GUID) is used only as a label, and shortened it to "WiseGroup" only.
- with the SDL_GAMECONTROLLERCONFIG environment variable set and exported in the Linux shell, "wine control joy.cpl" displayed more buttons (about 20), I was able to remap buttons by setting the variable to a different value and running wine control joy.cpl again, simultaneous button presses worked as expected, and there was no activity in the [X,Y] axis square at all.
- then I tried to run the "In The Groove" game with the SDL_GAMECONTROLLERCONFIG variable set - the controller did not work at all: I opened a "Configure input" menu and tried to map controller buttons to game inputs. This is done by selecting the desired input (up, down, left, right, back, and enter) with the keyboard arrow buttons, pressing Enter and then pressing the appropriate button on the controller. It recognized only "up" button of the controller, and reported it as "Joy1-Z-Up". But it did so only the first time, and no other button nor the same button was recognized further.
- I ran the game with WINEDEBUG=+hid,+rawinput,+dinput,+xinput,+input, both with and without the SDL_GAMECONTROLLERCONFIG variable set. I will attach the output (it is quite long, so I will make a tar.gz of it).
So it looks like Wine recognizes the controller (even without the SDL_GAMECONTROLLERCONFIG remapping), but presents it to the game in a different way than before in the WINE 5 times, and the application cannot handle it.
What else should I try? Thanks!