Skip to content

Commit

Permalink
Fixed windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 4, 2022
1 parent ee0e9e9 commit d3ba652
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/joystick/windows/SDL_rawinputjoystick.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit d3ba652

Please sign in to comment.