mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
sdl: enable joystick support
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git sdl2-clean/CMakeLists.txt sdl2-workdir/CMakeLists.txt
|
||||
index 8f9ab39..3361ebd 100644
|
||||
--- sdl2-clean/CMakeLists.txt
|
||||
+++ sdl2-workdir/CMakeLists.txt
|
||||
@@ -1690,7 +1690,7 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
||||
if(FREEBSD OR NETBSD OR OPENBSD OR BSDI)
|
||||
CheckUSBHID()
|
||||
endif()
|
||||
- if(LINUX AND HAVE_LINUX_INPUT_H AND NOT ANDROID)
|
||||
+ if((LINUX OR CMAKE_SYSTEM_NAME STREQUAL "Astral") AND HAVE_LINUX_INPUT_H AND NOT ANDROID)
|
||||
set(SDL_JOYSTICK_LINUX 1)
|
||||
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
|
||||
list(APPEND SOURCE_FILES ${JOYSTICK_SOURCES})
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name=sdl2
|
||||
revision=1
|
||||
revision=2
|
||||
from_source=sdl2
|
||||
imagedeps="meson ninja-build build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig cmake libstdc++-v3"
|
||||
|
||||
Reference in New Issue
Block a user