mainloop: cosmetic change to silence clang-tidy

This commit is contained in:
Sebastian Krzyszkowiak 2019-11-18 12:46:57 +01:00
parent 9ec64c46b3
commit 5981486764
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -118,15 +118,15 @@ static inline bool HandleEvent(struct Game* game, ALLEGRO_EVENT* ev) {
} }
#endif #endif
break; break;
#ifdef __SWITCH__
case ALLEGRO_EVENT_JOYSTICK_BUTTON_DOWN: case ALLEGRO_EVENT_JOYSTICK_BUTTON_DOWN:
case ALLEGRO_EVENT_JOYSTICK_BUTTON_UP: case ALLEGRO_EVENT_JOYSTICK_BUTTON_UP:
#ifdef __SWITCH__
// ignore button events coming form analog movement // ignore button events coming form analog movement
if (ev->joystick.button > 15) { if (ev->joystick.button > 15) {
return true; return true;
} }
#endif
break; break;
#endif
default: default:
break; break;
} }