Fixed return value
authorSam Lantinga <slouken@libsdl.org>
Mon, 19 Mar 2018 14:52:53 -0700
changeset 11935331397505b6c
parent 11934 a7061d1f4ee4
child 11937 f21a2cd69acf
Fixed return value
src/joystick/SDL_gamecontroller.c
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Mon Mar 19 14:42:51 2018 -0700
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Mon Mar 19 14:52:53 2018 -0700
     1.3 @@ -1976,12 +1976,12 @@
     1.4  
     1.5              if (gamecontroller->joystick->delayed_guide_button) {
     1.6                  /* Skip duplicate press */
     1.7 -                return;
     1.8 +                return (0);
     1.9              }
    1.10          } else {
    1.11              if (!SDL_TICKS_PASSED(now, gamecontroller->guide_button_down+SDL_MINIMUM_GUIDE_BUTTON_DELAY_MS) && !gamecontroller->joystick->force_recentering) {
    1.12                  gamecontroller->joystick->delayed_guide_button = SDL_TRUE;
    1.13 -                return;
    1.14 +                return (0);
    1.15              }
    1.16              gamecontroller->joystick->delayed_guide_button = SDL_FALSE;
    1.17          }