mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-18 09:18:14 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user