From 2f72535c626a145c0197f91582c3060f81385976 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 8 Jan 2021 09:54:55 -0800 Subject: [PATCH] Fixed joysticks generating SDL mouse events --- src/core/linux/SDL_evdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c index b9c028017..bd4fcf6cd 100644 --- a/src/core/linux/SDL_evdev.c +++ b/src/core/linux/SDL_evdev.c @@ -222,6 +222,9 @@ static void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_event, int udev_cl SDL_UDEV_DEVICE_TOUCHSCREEN))) return; + if ((udev_class & SDL_UDEV_DEVICE_JOYSTICK)) + return; + SDL_EVDEV_device_added(dev_path, udev_class); break; case SDL_UDEV_DEVICEREMOVED: