From 5981486764447f85a15d82acbde2989c56199ca8 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Mon, 18 Nov 2019 12:46:57 +0100 Subject: [PATCH] mainloop: cosmetic change to silence clang-tidy --- src/mainloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainloop.c b/src/mainloop.c index 126b030..0d729ee 100644 --- a/src/mainloop.c +++ b/src/mainloop.c @@ -118,15 +118,15 @@ static inline bool HandleEvent(struct Game* game, ALLEGRO_EVENT* ev) { } #endif break; +#ifdef __SWITCH__ case ALLEGRO_EVENT_JOYSTICK_BUTTON_DOWN: case ALLEGRO_EVENT_JOYSTICK_BUTTON_UP: -#ifdef __SWITCH__ // ignore button events coming form analog movement if (ev->joystick.button > 15) { return true; } -#endif break; +#endif default: break; }