From 7a1bf015417250205c342d5d6e9f7cfa73265439 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 8 Oct 2020 18:27:03 -0400 Subject: Undo the hacks that allowed targets without LEFT/RIGHT (UP/DN) to build. Replaced them with warnings until they are fixed *PROPERLY* Change-Id: I4425200e60f8b5224262a54f105b974cec471d22 --- apps/action.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index 0c55227aac..d2fef6f513 100644 --- a/apps/action.c +++ b/apps/action.c @@ -434,6 +434,7 @@ static inline void button_flip_horizontally(int context, int *button) return; } +#if defined(BUTTON_LEFT) && defined(BUTTON_RIGHT) newbutton &= ~(BUTTON_LEFT | BUTTON_RIGHT); if (has_flag(*button, BUTTON_LEFT)) { @@ -444,6 +445,10 @@ static inline void button_flip_horizontally(int context, int *button) { newbutton |= BUTTON_LEFT; } +#else +#warning "BUTTON_LEFT / BUTTON_RIGHT not defined!" +#endif + #ifndef SIMULATOR #ifdef HAVE_SCROLLWHEEL newbutton &= ~(BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD); -- cgit v1.2.3