Fixed windows compile
This commit is contained in:
parent
367ffcc3af
commit
4d7a5efe31
2 changed files with 3 additions and 1 deletions
|
@ -1567,7 +1567,7 @@ SDL_RunXInputHaptic(void *arg)
|
|||
SDL_LockMutex(hwdata->mutex);
|
||||
/* If we're currently running and need to stop... */
|
||||
if (hwdata->stopTicks) {
|
||||
if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && SDL_TIMESTAMP_PASSED(SDL_GetTicks(), hwdata->stopTicks)) {
|
||||
if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && SDL_TICKS_PASSED(SDL_GetTicks(), hwdata->stopTicks)) {
|
||||
XINPUT_VIBRATION vibration = { 0, 0 };
|
||||
hwdata->stopTicks = 0;
|
||||
XINPUTSETSTATE(hwdata->userid, &vibration);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue