mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
dc81f96fd1
commit
7a1bf01541
8 changed files with 31 additions and 18 deletions
|
@ -558,15 +558,20 @@ void button_close(void)
|
|||
|
||||
#ifdef HAVE_LCD_FLIP
|
||||
/*
|
||||
* helper function to swap LEFT/RIGHT, UP/DOWN (if present), and F1/F3 (Recorder)
|
||||
* helper function to swap LEFT/RIGHT, UP/DOWN (if present)
|
||||
*/
|
||||
static int button_flip(int button)
|
||||
{
|
||||
int newbutton = button;
|
||||
|
||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
newbutton &=
|
||||
~(BUTTON_LEFT | BUTTON_RIGHT
|
||||
newbutton &= ~(
|
||||
#if defined(BUTTON_LEFT) && defined(BUTTON_RIGHT)
|
||||
BUTTON_LEFT | BUTTON_RIGHT
|
||||
#else
|
||||
#warning "LEFT/RIGHT not defined!"
|
||||
0
|
||||
#endif
|
||||
#if defined(BUTTON_UP) && defined(BUTTON_DOWN)
|
||||
| BUTTON_UP | BUTTON_DOWN
|
||||
#endif
|
||||
|
@ -583,10 +588,15 @@ static int button_flip(int button)
|
|||
#endif
|
||||
);
|
||||
|
||||
#if defined(BUTTON_LEFT) && defined(BUTTON_RIGHT)
|
||||
if (button & BUTTON_LEFT)
|
||||
newbutton |= BUTTON_RIGHT;
|
||||
if (button & BUTTON_RIGHT)
|
||||
newbutton |= BUTTON_LEFT;
|
||||
#else
|
||||
#warning "LEFT/RIGHT not defined!"
|
||||
#endif
|
||||
|
||||
#if defined(BUTTON_UP) && defined(BUTTON_DOWN)
|
||||
if (button & BUTTON_UP)
|
||||
newbutton |= BUTTON_DOWN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue