Home
last modified time | relevance | path

Searched refs:stopTicks (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/SDL2/src/haptic/windows/
A DSDL_xinputhaptic.c153 if (hwdata->stopTicks) { in SDL_RunXInputHaptic()
154 …if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && SDL_TICKS_PASSED(SDL_GetTicks(), hwdata->stopTic… in SDL_RunXInputHaptic()
156 hwdata->stopTicks = 0; in SDL_RunXInputHaptic()
285 if (haptic->hwdata->stopTicks) { /* running right now? Update it. */ in SDL_XINPUT_HapticUpdateEffect()
299 haptic->hwdata->stopTicks = SDL_HAPTIC_INFINITY; in SDL_XINPUT_HapticRunEffect()
303 haptic->hwdata->stopTicks = SDL_GetTicks() + (effect->effect.leftright.length * iterations); in SDL_XINPUT_HapticRunEffect()
304 … if ((haptic->hwdata->stopTicks == SDL_HAPTIC_INFINITY) || (haptic->hwdata->stopTicks == 0)) { in SDL_XINPUT_HapticRunEffect()
305 haptic->hwdata->stopTicks = 1; /* fix edge cases. */ in SDL_XINPUT_HapticRunEffect()
317 haptic->hwdata->stopTicks = 0; in SDL_XINPUT_HapticStopEffect()
363 haptic->hwdata->stopTicks = 0; in SDL_XINPUT_HapticStopAll()
A DSDL_windowshaptic_c.h45 Uint32 stopTicks; member

Completed in 6 milliseconds