RetroArch/input/drivers
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
..
android_input.c Cleanups/style nits 2023-02-23 13:15:14 +01:00
cocoa_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00
cocoa_input.h (Cocoa) Struct reordering, alignment 2020-08-31 03:40:36 +02:00
ctr_input.c Improve haptic feedback for input overlays (#14517) 2022-10-16 09:58:09 +02:00
dinput.c i(dinput/winraw/x11) Fix issue pointed out in PR #15026 2023-02-26 15:51:37 +01:00
dos_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00
gx_input.c (GX) More buildfixes for Github CI 2022-11-27 23:46:30 +01:00
linuxraw_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00
ps2_input.c Improve haptic feedback for input overlays (#14517) 2022-10-16 09:58:09 +02:00
ps3_input.c Unify ps3 (#15014) 2023-02-23 00:35:46 +01:00
ps4_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00
psp_input.c Cleanups/style nits 2023-02-23 13:15:14 +01:00
qnx_input.c Improve haptic feedback for input overlays (#14517) 2022-10-16 09:58:09 +02:00
rwebinput_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00
sdl_dingux_input.c Improve haptic feedback for input overlays (#14517) 2022-10-16 09:58:09 +02:00
sdl_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00
switch_input.c (input drivers) Cleanups 2023-02-20 12:54:26 +01:00
udev_input.c fix udev guns input when id_mouse is not id_joystick (#15026) 2023-02-26 15:52:20 +01:00
uwp_input.c (input drivers) Cleanups 2023-02-20 12:54:26 +01:00
wayland_input.c Cleanups/style nits 2023-02-23 13:15:14 +01:00
wiiu_input.c Improve haptic feedback for input overlays (#14517) 2022-10-16 09:58:09 +02:00
winraw_input.c i(dinput/winraw/x11) Fix issue pointed out in PR #15026 2023-02-26 15:51:37 +01:00
x11_input.c i(dinput/winraw/x11) Fix issue pointed out in PR #15026 2023-02-26 15:51:37 +01:00
xdk_xinput_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00
xenon360_input.c (Input) Style nits/code simplifications 2023-02-19 06:30:14 +01:00