summaryrefslogtreecommitdiffstats
path: root/apps/action.c
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-12-05 15:54:05 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-12-05 15:54:05 +0000
commit3deed0610d379a669e598021ffda15749a5e5676 (patch)
tree8df381b31ef2e8fd5486ad03ca948af26ab17eac /apps/action.c
parent881eb5eebe4ed6f8d62a5a53b9c9f6e75e244f01 (diff)
downloadrockbox-3deed0610d379a669e598021ffda15749a5e5676.tar.gz
rockbox-3deed0610d379a669e598021ffda15749a5e5676.tar.bz2
rockbox-3deed0610d379a669e598021ffda15749a5e5676.zip
On RTL mode, flip + and - buttons (Cowon D2)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23855 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/action.c b/apps/action.c
index 7ec838fa7f..3d4ea9c48a 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -109,6 +109,10 @@ static int button_flip_horizontally(int context, int button)
!defined(SIMULATOR)
| BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD
#endif
+#if defined(BUTTON_MINUS) && defined(BUTTON_PLUS) && \
+ !defined(SIMULATOR)
+ | BUTTON_MINUS | BUTTON_PLUS
+#endif
);
if (button & BUTTON_LEFT)
@@ -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;
}