diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-06 18:01:05 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-06 18:01:05 +0000 |
commit | 191ce8ce34a0636ec8f27a7d77f975e4c690d1b5 (patch) | |
tree | b6e24627978d0085ba9d0cbd47164f4d1ac558e8 /apps | |
parent | 71753a32906cb285820e8e38113bebd76ba1d572 (diff) |
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')
-rw-r--r-- | apps/action.c | 9 |
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) |