From f0ba9c7e78cf4c95a0f9eb2c3cb382f18c715660 Mon Sep 17 00:00:00 2001 From: hinsbart Date: Wed, 24 Feb 2016 12:18:30 +0100 Subject: [PATCH] x11: fix joysticks not recognizing some buttons dpad on x360 pads with kernel < 4.3 is working now --- platform/x11/joystick_linux.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/x11/joystick_linux.h b/platform/x11/joystick_linux.h index e433f5e8e33..4f0533721b7 100644 --- a/platform/x11/joystick_linux.h +++ b/platform/x11/joystick_linux.h @@ -49,13 +49,11 @@ private: JOYSTICKS_MAX = 16, MAX_ABS = 63, MAX_KEY = 767, // Hack because 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;