diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-08 18:27:03 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-08 20:30:08 -0400 |
commit | 7a1bf015417250205c342d5d6e9f7cfa73265439 (patch) | |
tree | 640d702bb66d190fb60a6e6df6b54d8806ae4835 /apps/action.c | |
parent | dc81f96fd1bf3ddfe4c9e750ff14a0238f85d776 (diff) | |
download | rockbox-7a1bf015417250205c342d5d6e9f7cfa73265439.tar.gz rockbox-7a1bf015417250205c342d5d6e9f7cfa73265439.zip |
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
Diffstat (limited to 'apps/action.c')
-rw-r--r-- | apps/action.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
434 | return; | 434 | return; |
435 | } | 435 | } |
436 | 436 | ||
437 | #if defined(BUTTON_LEFT) && defined(BUTTON_RIGHT) | ||
437 | newbutton &= ~(BUTTON_LEFT | BUTTON_RIGHT); | 438 | newbutton &= ~(BUTTON_LEFT | BUTTON_RIGHT); |
438 | if (has_flag(*button, BUTTON_LEFT)) | 439 | if (has_flag(*button, BUTTON_LEFT)) |
439 | { | 440 | { |
@@ -444,6 +445,10 @@ static inline void button_flip_horizontally(int context, int *button) | |||
444 | { | 445 | { |
445 | newbutton |= BUTTON_LEFT; | 446 | newbutton |= BUTTON_LEFT; |
446 | } | 447 | } |
448 | #else | ||
449 | #warning "BUTTON_LEFT / BUTTON_RIGHT not defined!" | ||
450 | #endif | ||
451 | |||
447 | #ifndef SIMULATOR | 452 | #ifndef SIMULATOR |
448 | #ifdef HAVE_SCROLLWHEEL | 453 | #ifdef HAVE_SCROLLWHEEL |
449 | newbutton &= ~(BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD); | 454 | newbutton &= ~(BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD); |