mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-03-04 22:57:14 +00:00
Always return 1 gamepad in single controller mode
This commit is contained in:
parent
7d14b2a2be
commit
94ecc4a1c8
1 changed files with 5 additions and 0 deletions
|
@ -480,6 +480,11 @@ int SdlGetAttachedGamepadMask(void)
|
|||
int count;
|
||||
int mask;
|
||||
|
||||
if (!g_MultiController) {
|
||||
// Player 1 is always present in non-MC mode
|
||||
return 0x1;
|
||||
}
|
||||
|
||||
count = mask = 0;
|
||||
for (i = 0; i < SDL_NumJoysticks(); i++) {
|
||||
if (SDL_IsGameController(i)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue