From 8093c9920f97afc3bda71755da6ef13f9200ba4b Mon Sep 17 00:00:00 2001 From: Matthew Caron Date: Fri, 10 Nov 2023 22:10:41 -0500 Subject: [PATCH] Change maximum number of joystick buttons allowed by the mapper. Modern sticks (particularly throttles) have more than 32 buttons. See VKB STECS and Virpil Mongoose for examples. --- src/gui/sdl_mapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/sdl_mapper.cpp b/src/gui/sdl_mapper.cpp index 1f1ddebbf3..38d09cdfdd 100644 --- a/src/gui/sdl_mapper.cpp +++ b/src/gui/sdl_mapper.cpp @@ -83,7 +83,7 @@ #define MAXSTICKS 8 #define MAXACTIVE 16 -#define MAXBUTTON 32 +#define MAXBUTTON 96 #define MAXBUTTON_CAP 16 #define MAXAXIS 8 #define MAXHAT 2