sdl2_frt/src
Sam Lantinga 7ae52b1730 Fixed bug 2477 - [PATCH] Joysticks do not work on RHEL6/CentOS6 systems
Ashley Whetter

RHEL6 and CentOS6 systems still use an old version of udev (147). It wasn't until udev 148 (Yep. 1 version off!) that the input class system changed from "ID_CLASS" to "ID_INPUT_{JOYSTICK,KEYBOARD,MOUSE,etc}" (http://lwn.net/Articles/364728/). Because SDL2 looks for the ID_INPUT_X field this means that it never detects any input devices on RHEL6 systems.

I've attached a patch which fixes the problem. If no input devices are detected with "ID_INPUT_X" then SDL will fallback to looking for the old style "ID_CLASS" udev field instead.
Because of the "big change" between udev versions I doubt it'll ever get upgraded on RHEL6, but because RHEL7 is on the way I don't know if this patch is worth merging. Hopefully it'll help anyone out that's having this problem though.
2014-04-17 20:18:50 -07:00
..
atomic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
audio Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
core Fixed bug 2477 - [PATCH] Joysticks do not work on RHEL6/CentOS6 systems 2014-04-17 20:18:50 -07:00
cpuinfo Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
dynapi Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
events Fixed bug 2503 - Loop indexing and event union errors in SDL_gesture.c 2014-04-17 19:52:15 -07:00
file Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
filesystem Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
haptic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
joystick Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
libm Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
loadso Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
main Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
power Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
render Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
stdlib Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
test Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
thread Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
timer Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
video Fixed window losing the SDL_WINDOW_FOREIGN flag if something tries to recreate it. 2014-04-17 20:15:44 -07:00
SDL_assert_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_assert.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_hints.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_internal.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_log.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00