mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 08:07:22 +00:00
Allow up to 16 gamepads with Sunshine hosts
This commit is contained in:
1 parent
9af58af5e4
commit
7a719aa886
3 files changed
+6
-4
No files matched your search
@@ -45,8 +45,8 @@ SdlInputHandler::findStateForGamepad(SDL_JoystickID id)
|
||||
}
|
||||
}
|
||||
|
||||
// This should only happen with > 4 gamepads
|
||||
SDL_assert(SDL_NumJoysticks() > 4);
|
||||
// This should only happen with too many gamepads
|
||||
SDL_assert(SDL_NumJoysticks() > MAX_GAMEPADS);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,9 @@ struct GamepadState {
|
||||
unsigned char lt, rt;
|
||||
};
|
||||
|
||||
#define MAX_GAMEPADS 4
|
||||
// activeGamepadMask is a short, so we're bounded by the number of mask bits
|
||||
#define MAX_GAMEPADS 16
|
||||
|
||||
#define MAX_FINGERS 2
|
||||
|
||||
#define GAMEPAD_HAPTIC_METHOD_NONE 0
|
||||
|
||||
Submodule moonlight-common-c/moonlight-common-c updated: 9bf09d681e...812ec0e2b7.
Reference in new issue
Block a user