mirror of https://github.com/encounter/SDL.git
Fixed windows compile
This commit is contained in:
parent
f5fa492e26
commit
aa86e05d21
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
This is a list of API changes in SDL's version history.
|
This is a list of API changes in SDL's version history.
|
||||||
|
|
||||||
|
2.0.1
|
||||||
|
*
|
||||||
|
|
|
@ -1567,7 +1567,7 @@ SDL_RunXInputHaptic(void *arg)
|
||||||
SDL_LockMutex(hwdata->mutex);
|
SDL_LockMutex(hwdata->mutex);
|
||||||
/* If we're currently running and need to stop... */
|
/* If we're currently running and need to stop... */
|
||||||
if (hwdata->stopTicks) {
|
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 };
|
XINPUT_VIBRATION vibration = { 0, 0 };
|
||||||
hwdata->stopTicks = 0;
|
hwdata->stopTicks = 0;
|
||||||
XINPUTSETSTATE(hwdata->userid, &vibration);
|
XINPUTSETSTATE(hwdata->userid, &vibration);
|
||||||
|
|
Loading…
Reference in New Issue