mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 07:29:09 +00:00
Fixed joysticks generating SDL mouse events
This commit is contained in:
parent
a5dba7d3ab
commit
2f72535c62
1 changed files with 3 additions and 0 deletions
|
@ -222,6 +222,9 @@ static void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_event, int udev_cl
|
||||||
SDL_UDEV_DEVICE_TOUCHSCREEN)))
|
SDL_UDEV_DEVICE_TOUCHSCREEN)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ((udev_class & SDL_UDEV_DEVICE_JOYSTICK))
|
||||||
|
return;
|
||||||
|
|
||||||
SDL_EVDEV_device_added(dev_path, udev_class);
|
SDL_EVDEV_device_added(dev_path, udev_class);
|
||||||
break;
|
break;
|
||||||
case SDL_UDEV_DEVICEREMOVED:
|
case SDL_UDEV_DEVICEREMOVED:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue