mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 04:53:50 +00:00
Re-enabled Linux joystick API.
This commit is contained in:
parent
d73505887d
commit
47ea99b81e
@ -94,6 +94,10 @@ if (UNIX AND NOT APPLE AND NOT CYGWIN)
|
|||||||
NOT _GLFW_HAS_GLXGETPROCADDRESSARB AND
|
NOT _GLFW_HAS_GLXGETPROCADDRESSARB AND
|
||||||
NOT _GLFW_HAS_GLXGETPROCADDRESSEXT)
|
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
|
# Select platform specific code
|
||||||
add_subdirectory(src/x11)
|
add_subdirectory(src/x11)
|
||||||
endif(UNIX AND NOT APPLE AND NOT CYGWIN)
|
endif(UNIX AND NOT APPLE AND NOT CYGWIN)
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
/* Define this to 1 if glXGetProcAddressEXT is available */
|
/* Define this to 1 if glXGetProcAddressEXT is available */
|
||||||
#cmakedefine _GLFW_HAS_GLXGETPROCADDRESSEXT 1
|
#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 */
|
/* Define this to 1 to not load gdi32.dll dynamically */
|
||||||
#cmakedefine _GLFW_NO_DLOAD_GDI32 1
|
#cmakedefine _GLFW_NO_DLOAD_GDI32 1
|
||||||
/* Define this to 1 to not load winmm.dll dynamically */
|
/* Define this to 1 to not load winmm.dll dynamically */
|
||||||
|
Loading…
Reference in New Issue
Block a user