Force gNumJoys to 2 in controller_update_gamepad_choices[build]

Set gNumJoys to 2 regardless of the number of joysticks detected.
This commit is contained in:
Isaac0-dev 2025-12-22 13:12:21 +10:00 committed by GitHub
parent 5524ce52e5
commit 3a32601087
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,7 @@ void controller_update_gamepad_choices() {
gNumJoys = SDL_NumJoysticks();
if (gNumJoys <= 0) { gNumJoys = 1; }
if (gNumJoys > MAX_GAMEPADS) { gNumJoys = MAX_GAMEPADS; }
gNumJoys = 2;
for (int i = 0; i < gNumJoys; i++) {
gGamepadChoices[i] = gGamepadChoicesBuffer[i];