SDL/src
Sam Lantinga 9f50d63dd5 Fixed an issue with mouse/keyboard removal
Sometimes, on removal SDL_EVDEV_udev_callback() gets called with zero udev_class. This in turn seems to be caused the SDL_udev.c:guess_device_class() failing to find the attributes of the parent device.

Apparently this is normal, attributes are not guaranteed to be in place during removal, depending on timing. This lack of attributes causes guess_device_class() to return zero.

This fix mimics the code in linux/SDL_sysjoystick.c:joystick_udev_callback() which effectively has the same fix already in place.
2015-06-24 17:54:39 -07:00
..
atomic Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
audio SDL 2015-06-24 10:56:51 -07:00
core Fixed an issue with mouse/keyboard removal 2015-06-24 17:54:39 -07:00
cpuinfo Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
dynapi Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
events Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
file Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
filesystem Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
haptic Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
joystick Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
libm Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
loadso Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
main Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
power Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
render Fixed compiler warning about shadowed local variables. 2015-06-23 01:44:44 -04:00
stdlib Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
test Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
thread Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
timer Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
video SDL 2015-06-24 10:56:37 -07:00
SDL.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_assert.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_assert_c.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_error.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_error_c.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_hints.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_internal.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_log.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00