https://bugs.winehq.org/show_bug.cgi?id=47123
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Thanks for the logs. The question that it raises is, what value is it checking to see if it has a joystick.
If you get it in a working state, then change "lpddi->wUsage" to lpddi->wUsage = 0x05; /* Game Pad */
Does it still fail?
Is there any chance you could post the "dinput_test joystick" output running on windows? (with the joysticks attached).