diff options
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); |