Fixed windows build
This commit is contained in:
parent
ee0e9e979c
commit
d3ba6529e6
1 changed files with 6 additions and 0 deletions
|
@ -1754,6 +1754,9 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
|
||||||
|
|
||||||
if (ctx->guide_hack || ctx->trigger_hack) {
|
if (ctx->guide_hack || ctx->trigger_hack) {
|
||||||
timestamp = SDL_GetTicksNS();
|
timestamp = SDL_GetTicksNS();
|
||||||
|
} else {
|
||||||
|
/* timestamp won't be used */
|
||||||
|
timestamp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->guide_hack) {
|
if (ctx->guide_hack) {
|
||||||
|
@ -1802,6 +1805,9 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
|
||||||
|
|
||||||
if (ctx->guide_hack || ctx->trigger_hack) {
|
if (ctx->guide_hack || ctx->trigger_hack) {
|
||||||
timestamp = SDL_GetTicksNS();
|
timestamp = SDL_GetTicksNS();
|
||||||
|
} else {
|
||||||
|
/* timestamp won't be used */
|
||||||
|
timestamp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->guide_hack) {
|
if (ctx->guide_hack) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue