1
0
Fork 0

FGJoystickInput: increase MAX_JOYSTICKS from 10 to 16

Since PLIBjs uses joyGetDevCaps()[1] on Windows and this function
accepts joystick ids from 0 to 15 (-1 being special), setting
MAX_JOYSTICKS to 16 ensures that FGJoystickInput::init() can scan all
joysticks that joyGetDevCaps() is able to report about.

[1] https://docs.microsoft.com/en-us/previous-versions/dd757105(v%3Dvs.85)
This commit is contained in:
Florent Rougon 2019-04-29 12:54:03 +02:00
parent 9121079cfe
commit 9b019f6b72

View file

@ -46,7 +46,7 @@ public:
virtual void reinit();
virtual void update( double dt );
static const int MAX_JOYSTICKS = 10;
static const int MAX_JOYSTICKS = 16;
static const int MAX_JOYSTICK_AXES = _JS_MAX_AXES;
static const int MAX_JOYSTICK_BUTTONS = 32;