Explorar o código

Merge pull request #3819 from Hinsbart/fix_dpad

x11: fix joysticks not recognizing some buttons
punto- %!s(int64=9) %!d(string=hai) anos
pai
achega
f2a567d925
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      platform/x11/joystick_linux.h

+ 1 - 3
platform/x11/joystick_linux.h

@@ -49,13 +49,11 @@ private:
 		JOYSTICKS_MAX = 16,
 		MAX_ABS = 63,
 		MAX_KEY = 767,   // Hack because <linux/input.h> can't be included here
-		BT_MISC = 256,
-		HAT_MAX = 4,
 	};
 
 	struct Joystick {
 		InputDefault::JoyAxis curr_axis[MAX_ABS];
-		int key_map[MAX_KEY - BT_MISC];
+		int key_map[MAX_KEY];
 		int abs_map[MAX_ABS];
 		int dpad;
 		int fd;