Hey there. Do you have any joystick devices in your system? For example, some a4tech hardware provide such a device. Here is an example of my udev rule to deal with that (commented one was working for years before some update, I had to change it to be more specific):
Bash:
$ cat /etc/udev/rules.d/83-remove-a4tech-joystick.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="77c8", RUN:="/bin/sh -c '/bin/rm -f $env{DEVNAME}; for i in $env{DEVLINKS}; do /bin/rm -f $i; done'"
#SUBSYSTEMS=="usb", ENV{ID_VENDOR_ENC}=="A4Tech", ENV{ID_INPUT_JOYSTICK}=="1", RUN:="/bin/sh -c '/bin/rm -f $env{DEVNAME}; for i in $env{DEVLINKS}; do /bin/rm -f $i; done'"
If you're interested here is the rule for my xboxdrv device, I had some problems with my actual gamepad too (and it changed its name recently):
Bash:
$ cat /etc/udev/rules.d/90-event.rules
KERNEL=="js*", SUBSYSTEMS=="input", MODE="660", GROUP="games"
KERNEL=="event*", SUBSYSTEMS=="input", MODE="660", GROUP="games"
#Xbox 360 Wireless Receiver
#Microsoft X-Box 360 pad
KERNEL=="js*", SUBSYSTEMS=="input", ATTRS{name}=="Microsoft X-Box 360 pad", ATTRS{properties}=="0", SYMLINK:="input/jsx1"
#KERNEL=="uinput", SUBSYSTEM=="misc", MODE="0660", GROUP="games"
For it to work properly I have to modprobe joydev module (uinput module is loaded by xboxdrv)
Still, I had some difficulties with Unity games not being able to detect my gamepad, it was only detected properly in fullscreen mode (fake fullscreen iirc).
Oh, there is also
export SDL_JOYSTICK_DEVICE=/dev/input/jsx1
, the usual evdev route doesn't work and evdev probably not even shipped with modern systems (it's libinput nowadays), so wine can have some problems with gamepads due to that (for example, for me, rumble was broken in some games, but working with joy.cpl). Not to mention a long-standing issue where games cannot detect your type of gamepad (wine problem). Likely won't be fixed ever, but then again, they've started fixing midi, so rpgmaker games are probably playable without the need to manually convert midi to ogg now (winetricks gmdls approach was fine but it made every other game broken).