src/joystick/android/SDL_sysjoystick.c
changeset 11671 3dc400fafd76
parent 11663 0d96acbd34f0
child 11778 db38a635e2c6
     1.1 --- a/src/joystick/android/SDL_sysjoystick.c	Thu Nov 02 08:46:14 2017 -0700
     1.2 +++ b/src/joystick/android/SDL_sysjoystick.c	Thu Nov 02 08:48:14 2017 -0700
     1.3 @@ -460,7 +460,7 @@
     1.4       * Ref: http://developer.android.com/reference/android/hardware/input/InputManager.InputDeviceListener.html
     1.5       */
     1.6      static Uint32 timeout = 0;
     1.7 -    if (SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
     1.8 +    if (!timeout || SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
     1.9          timeout = SDL_GetTicks() + 3000;
    1.10          Android_JNI_PollInputDevices();
    1.11      }