summaryrefslogtreecommitdiffstats
path: root/apps/action.c
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-10-06 18:01:05 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-10-06 18:01:05 +0000
commit191ce8ce34a0636ec8f27a7d77f975e4c690d1b5 (patch)
treeb6e24627978d0085ba9d0cbd47164f4d1ac558e8 /apps/action.c
parent71753a32906cb285820e8e38113bebd76ba1d572 (diff)
downloadrockbox-191ce8ce34a0636ec8f27a7d77f975e4c690d1b5.tar.gz
rockbox-191ce8ce34a0636ec8f27a7d77f975e4c690d1b5.tar.bz2
rockbox-191ce8ce34a0636ec8f27a7d77f975e4c690d1b5.zip
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
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/action.c b/apps/action.c
index 055171174b..f65ef39bf0 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -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)