ソースを参照

Fixed building on older kernel headers

Sam Lantinga 3 年 前
コミット
b98494a101
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/core/linux/SDL_evdev_capabilities.h

+ 3 - 0
src/core/linux/SDL_evdev_capabilities.h

@@ -28,6 +28,9 @@
 
 
 #include <linux/input.h>
 #include <linux/input.h>
 
 
+#ifndef INPUT_PROP_ACCELEROMETER
+#define INPUT_PROP_ACCELEROMETER 0x06
+#endif
 #ifndef INPUT_PROP_MAX
 #ifndef INPUT_PROP_MAX
 #define INPUT_PROP_MAX 0x1f
 #define INPUT_PROP_MAX 0x1f
 #endif
 #endif