diff options
author | punto- <ariel@godotengine.org> | 2016-02-24 08:52:05 -0300 |
---|---|---|
committer | punto- <ariel@godotengine.org> | 2016-02-24 08:52:05 -0300 |
commit | f2a567d925c70da5968cb9cb0e5aa18ed280d28d (patch) | |
tree | c8e811218e93ad916f4b7617bd41cf01c351f134 | |
parent | 3d58d5d5f2c952fe2d508a6b58d8d96822638325 (diff) | |
parent | 1e54fd142be062fd221209c88926d77f909066b7 (diff) |
Merge pull request #3819 from Hinsbart/fix_dpad
x11: fix joysticks not recognizing some buttons
-rw-r--r-- | platform/x11/joystick_linux.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/x11/joystick_linux.h b/platform/x11/joystick_linux.h index e433f5e8e3..4f0533721b 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 <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; |