Browse Source

Fixed build with older Linux kernel headers

Sam Lantinga 3 years ago
parent
commit
ebed961cb2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/joystick/linux/SDL_sysjoystick.c

+ 6 - 0
src/joystick/linux/SDL_sysjoystick.c

@@ -56,6 +56,12 @@
 #ifndef SYN_DROPPED
 #define SYN_DROPPED 3
 #endif
+#ifndef BTN_NORTH
+#define BTN_NORTH       0x133
+#endif
+#ifndef BTN_WEST
+#define BTN_WEST        0x134
+#endif
 #ifndef BTN_DPAD_UP
 #define BTN_DPAD_UP     0x220
 #endif