From b41b9d34c7268ce5fbf3b62fa161d5d944f280d2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 19 Mar 2018 14:52:53 -0700 Subject: [PATCH] Fixed return value --- src/joystick/SDL_gamecontroller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index cdf97e4821378..f1f509d75038d 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -1976,12 +1976,12 @@ SDL_PrivateGameControllerButton(SDL_GameController * gamecontroller, SDL_GameCon if (gamecontroller->joystick->delayed_guide_button) { /* Skip duplicate press */ - return; + return (0); } } else { if (!SDL_TICKS_PASSED(now, gamecontroller->guide_button_down+SDL_MINIMUM_GUIDE_BUTTON_DELAY_MS) && !gamecontroller->joystick->force_recentering) { gamecontroller->joystick->delayed_guide_button = SDL_TRUE; - return; + return (0); } gamecontroller->joystick->delayed_guide_button = SDL_FALSE; }