From 191ce8ce34a0636ec8f27a7d77f975e4c690d1b5 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Tue, 6 Oct 2009 18:01:05 +0000 Subject: [PATCH] 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 --- apps/action.c | 9 +++++---- 1 file 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)