Fixed windows build

This commit is contained in:
Sam Lantinga 2022-12-04 09:39:55 -08:00
parent ee0e9e979c
commit d3ba6529e6

View file

@ -1754,6 +1754,9 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
if (ctx->guide_hack || ctx->trigger_hack) {
timestamp = SDL_GetTicksNS();
} else {
/* timestamp won't be used */
timestamp = 0;
}
if (ctx->guide_hack) {
@ -1802,6 +1805,9 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
if (ctx->guide_hack || ctx->trigger_hack) {
timestamp = SDL_GetTicksNS();
} else {
/* timestamp won't be used */
timestamp = 0;
}
if (ctx->guide_hack) {