mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
SDL_PrivateJoystickForceRecentering(): fix infinite loop
This commit is contained in:
committed by
Sam Lantinga
parent
32ef82caaf
commit
b5ef75249f
@@ -2492,7 +2492,7 @@ bool SDL_IsJoystickBeingAdded(void)
|
|||||||
|
|
||||||
void SDL_PrivateJoystickForceRecentering(SDL_Joystick *joystick)
|
void SDL_PrivateJoystickForceRecentering(SDL_Joystick *joystick)
|
||||||
{
|
{
|
||||||
Uint8 i, j;
|
int i, j;
|
||||||
Uint64 timestamp = SDL_GetTicksNS();
|
Uint64 timestamp = SDL_GetTicksNS();
|
||||||
|
|
||||||
SDL_AssertJoysticksLocked();
|
SDL_AssertJoysticksLocked();
|
||||||
|
|||||||
Reference in New Issue
Block a user