Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix udev guns input when id_mouse is not id_joystick (libretro#15026)
the commit cfe9d60 introduces an issues on guns inputs for drivers udev, dinput, winraw and x11. A local variable called "port" is redefining the function argument variable and is causing bad calls in subsequent function calls. In short, functionnally, if you have only 1 gun and 1 pad on your system, all works. As soon as you use several pads or several guns, you may have issues, because subsequent calls use the joystick port instead of the device port as argument. IMPORTANT NOTE : this fix was done originally for the batocera project which uses only the udev driver, this is why it is focused on udev only. The same thing must be done and tested for dinput, winraw and x11. I've not the ability to test them. Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
- Loading branch information