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:
parent
881eb5eebe
commit
3deed0610d
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue