Updated Linux joystick code to support hotplug, GUIDs, etc.

This uses libudev for hotplug, but it's optional, so we'll just try to find
 some reasonable defaults without it (maybe an older Linux box or under
 FreeBSD's Linux emulation?).
This commit is contained in:
Ryan C. Gordon 2012-12-11 12:07:06 -05:00
parent 41a157a462
commit c8713a62c1
6 changed files with 537 additions and 152 deletions

View file

@ -648,7 +648,9 @@ if(UNIX AND NOT APPLE)
set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
set(HAVE_SDL_HAPTIC TRUE)
endif(SDL_HAPTIC AND HAVE_INPUT_EVENTS)
endif(LINUX
check_include_file("libudev.h" HAVE_LIBUDEV_H)
endif(LINUX)
if(INPUT_TSLIB)
check_c_source_compiles("