1
0
Fork 0
forked from len0rd/rockbox

On RTL mode, flip + and - buttons (Cowon D2)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23855 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2009-12-05 15:54:05 +00:00
parent 881eb5eebe
commit 3deed0610d

View file

@ -108,6 +108,10 @@ static int button_flip_horizontally(int context, int button)
#if defined(BUTTON_SCROLL_BACK) && defined(BUTTON_SCROLL_FWD) && \
!defined(SIMULATOR)
| BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD
#endif
#if defined(BUTTON_MINUS) && defined(BUTTON_PLUS) && \
!defined(SIMULATOR)
| BUTTON_MINUS | BUTTON_PLUS
#endif
);
@ -122,6 +126,13 @@ static int button_flip_horizontally(int context, int button)
if (button & BUTTON_SCROLL_FWD)
newbutton |= BUTTON_SCROLL_BACK;
#endif
#if defined(BUTTON_MINUS) && defined(BUTTON_PLUS) && \
!defined(SIMULATOR)
if (button & BUTTON_MINUS)
newbutton |= BUTTON_PLUS;
if (button & BUTTON_PLUS)
newbutton |= BUTTON_MINUS;
#endif
return newbutton;
}