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:
parent
9121079cfe
commit
9b019f6b72
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue