Przeglądaj źródła

Fixed event handling for Raspberry Pi.

Yao Wei Tjong 姚伟忠 12 lat temu
rodzic
commit
9e09e958dc

+ 1 - 1
Source/ThirdParty/SDL/CMakeLists.txt

@@ -50,7 +50,7 @@ elseif (ANDROID)
 else ()
     # On Linux, make sure development libraries exist, and use their include file directories  
     if (RASPI)
-        file (GLOB VIDEO_DRIVER_C_FILES src/video/raspberry/*.c src/input/evdev/*.c)
+        file (GLOB VIDEO_DRIVER_C_FILES src/video/raspberry/*.c src/core/linux/*.c src/input/evdev/*.c)
     else ()
         find_package (OpenGL REQUIRED)
         include_directories (${OpenGL_INCLUDE_DIRS})

+ 2 - 0
Source/ThirdParty/SDL/include/SDL_config_linux.h

@@ -285,6 +285,8 @@
 #define SDL_VIDEO_RENDER_OGL_ES 1
 #define SDL_VIDEO_RENDER_OGL_ES2 1
 
+/* Linux device manager */
+#define HAVE_LIBUDEV_H 1
 /* Linux keyboard */
 #define SDL_INPUT_LINUXKD 1