Skip to content

Commit

Permalink
Fixed return value
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 19, 2018
1 parent 8e062f6 commit b41b9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/SDL_gamecontroller.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b41b9d3

Please sign in to comment.