Re-enabled Linux joystick API.

This commit is contained in:
Camilla Berglund 2010-09-25 19:26:40 +02:00
parent d73505887d
commit 47ea99b81e
2 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,10 @@ if (UNIX AND NOT APPLE AND NOT CYGWIN)
NOT _GLFW_HAS_GLXGETPROCADDRESSARB AND
NOT _GLFW_HAS_GLXGETPROCADDRESSEXT)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(_GLFW_USE_LINUX_JOYSTICKS 1)
endif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# Select platform specific code
add_subdirectory(src/x11)
endif(UNIX AND NOT APPLE AND NOT CYGWIN)

View File

@ -12,6 +12,9 @@
/* Define this to 1 if glXGetProcAddressEXT is available */
#cmakedefine _GLFW_HAS_GLXGETPROCADDRESSEXT 1
/* Define this to 1 if the Linux joystick API is available */
#cmakedefine _GLFW_USE_LINUX_JOYSTICKS 1
/* Define this to 1 to not load gdi32.dll dynamically */
#cmakedefine _GLFW_NO_DLOAD_GDI32 1
/* Define this to 1 to not load winmm.dll dynamically */