Browse Source

Fixed building on older kernel headers

Sam Lantinga 1 year ago
parent
commit
b770644411
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/core/linux/SDL_evdev_capabilities.h

+ 7 - 1
src/core/linux/SDL_evdev_capabilities.h

@@ -28,8 +28,14 @@
 
 #include <linux/input.h>
 
+#ifndef INPUT_PROP_TOPBUTTONPAD
+#define INPUT_PROP_TOPBUTTONPAD     0x04
+#endif
+#ifndef INPUT_PROP_POINTING_STICK
+#define INPUT_PROP_POINTING_STICK   0x05
+#endif
 #ifndef INPUT_PROP_ACCELEROMETER
-#define INPUT_PROP_ACCELEROMETER 0x06
+#define INPUT_PROP_ACCELEROMETER    0x06
 #endif
 #ifndef INPUT_PROP_MAX
 #define INPUT_PROP_MAX 0x1f