RetroArch/input
Nicolas Adenis-Lamarre 7e2e87ad4a
fix udev guns input when id_mouse is not id_joystick (#15026)
the commit cfe9d60f51
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>
2023-02-26 15:52:20 +01:00
..
common (Wayland input) Cleanups 2023-02-20 10:26:14 +01:00
connect Buildfix 2023-02-23 19:06:55 +01:00
drivers fix udev guns input when id_mouse is not id_joystick (#15026) 2023-02-26 15:52:20 +01:00
drivers_hid Cleanups/style nits 2023-02-23 13:15:14 +01:00
drivers_joypad Cleanups/style nits 2023-02-23 13:15:14 +01:00
drivers_keyboard
include (Subsystem) Cleanups 2023-02-19 12:15:45 +01:00
input_autodetect_builtin.c mFI on OSX (#14975) 2023-02-13 21:49:35 +01:00
input_defines.h BSV ergonomics improvements (#14929) 2023-01-31 05:34:26 +01:00
input_driver.c Cleanups/style nits 2023-02-23 13:15:14 +01:00
input_driver.h Fix function declaration movie_stop_playback 2023-02-23 17:05:31 +01:00
input_keymaps.c (PS3) Cleanups - don't assume GLSL is the default shader for PSL1GHT 2023-02-23 10:43:33 +01:00
input_keymaps.h
input_osk_utf8_pages.h
input_osk.h
input_overlay.h
input_remapping.h
input_types.h