Force SDL joystick refresh during reconnect recovery poll
This commit is contained in:
parent
bcb721bca3
commit
6742e9153c
1 changed files with 3 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ SdlInputHandler::ensureStateForGamepad(SDL_JoystickID id)
|
||||||
|
|
||||||
void SdlInputHandler::pollForMissingGamepads()
|
void SdlInputHandler::pollForMissingGamepads()
|
||||||
{
|
{
|
||||||
|
SDL_JoystickUpdate();
|
||||||
|
SDL_GameControllerUpdate();
|
||||||
|
|
||||||
cleanupDetachedGamepads();
|
cleanupDetachedGamepads();
|
||||||
|
|
||||||
const int joystickCount = SDL_NumJoysticks();
|
const int joystickCount = SDL_NumJoysticks();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue