Allow up to 16 gamepads with Sunshine hosts
This commit is contained in:
parent
9af58af5e4
commit
7a719aa886
3 changed files with 6 additions and 4 deletions
|
|
@ -45,8 +45,8 @@ SdlInputHandler::findStateForGamepad(SDL_JoystickID id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This should only happen with > 4 gamepads
|
// This should only happen with too many gamepads
|
||||||
SDL_assert(SDL_NumJoysticks() > 4);
|
SDL_assert(SDL_NumJoysticks() > MAX_GAMEPADS);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ struct GamepadState {
|
||||||
unsigned char lt, rt;
|
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 MAX_FINGERS 2
|
||||||
|
|
||||||
#define GAMEPAD_HAPTIC_METHOD_NONE 0
|
#define GAMEPAD_HAPTIC_METHOD_NONE 0
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9bf09d681ef21e5a1284b50a850fe4e5df3afbe3
|
Subproject commit 812ec0e2b7d1a84c13ebae5f821aeedc80bd1ea2
|
||||||
Loading…
Add table
Add a link
Reference in a new issue