RTL: No need to swap *scrollwheel* in simulator, as it is being simulated by up/down *buttons*

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22988 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2009-10-06 18:01:05 +00:00
parent 71753a3290
commit 191ce8ce34

View file

@ -96,15 +96,15 @@ static int button_flip_horizontally(int context, int button)
int newbutton;
if (!(lang_is_rtl() && ((context == CONTEXT_STD) ||
(context & CONTEXT_TREE) || (context & CONTEXT_MAINMENU) ||
(context & CONTEXT_TREE))))
(context & CONTEXT_TREE) || (context & CONTEXT_MAINMENU))))
{
return button;
}
newbutton = button &
~(BUTTON_LEFT | BUTTON_RIGHT
#if defined(BUTTON_SCROLL_BACK) && defined(BUTTON_SCROLL_FWD)
#if defined(BUTTON_SCROLL_BACK) && defined(BUTTON_SCROLL_FWD) && \
!defined(SIMULATOR)
| BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD
#endif
);
@ -113,7 +113,8 @@ static int button_flip_horizontally(int context, int button)
newbutton |= BUTTON_RIGHT;
if (button & BUTTON_RIGHT)
newbutton |= BUTTON_LEFT;
#if defined(BUTTON_SCROLL_BACK) && defined(BUTTON_SCROLL_FWD)
#if defined(BUTTON_SCROLL_BACK) && defined(BUTTON_SCROLL_FWD) && \
!defined(SIMULATOR)
if (button & BUTTON_SCROLL_BACK)
newbutton |= BUTTON_SCROLL_FWD;
if (button & BUTTON_SCROLL_FWD)