https://bugs.winehq.org/show_bug.cgi?id=50321
Bug ID: 50321 Summary: Wine Linux-input joystick driver unable to detect joystick with id > 64 Product: Wine Version: 6.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput Assignee: wine-bugs@winehq.org Reporter: messengerofdeath@gmail.com Distribution: ---
Created attachment 68903 --> https://bugs.winehq.org/attachment.cgi?id=68903 Patch for scanning of /dev/input/event*
My joystick is not visible in wine (wine control joy.cpl) as evdev device. Visible only as js device but js device works bad with my device. I found that wine only can support joystick via evdev that have id less then 64.
According to joystick_linuxinput.c currently maximum scanned /dev/input/eventX file is the /dev/input/event64 but on my system i have joystick on event 265(throttle) and 266(stick)
Possible solution is to extend MAX_JOYDEV to some big value (512 for example). Or another way - scan /dev/input folder. I've attached working patch for joystick_linuxinput.c that uses readdir functionality.
Reproducible on 5.22, 6.0-rc1, 6.0-rc2