mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 23:40:54 +00:00
Fixed incorrect WGI controller state when the application loses focus
Recenter the controller elements when WGI stops reporting valid state Fixes https://github.com/libsdl-org/SDL/issues/5261
This commit is contained in:
parent
875e9b35d7
commit
b7e65a81f1
3 changed files with 21 additions and 8 deletions
|
@ -1432,7 +1432,7 @@ static void UpdateEventsForDeviceRemoval(int device_index, Uint32 type)
|
|||
SDL_small_free(events, isstack);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
SDL_PrivateJoystickForceRecentering(SDL_Joystick *joystick)
|
||||
{
|
||||
int i, j;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue