summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-09-25 18:45:03 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-09-25 18:45:03 +0000
commit979c23a71554a480d8a7d7a3996327145ee10d2d (patch)
treef69ac5f775c3b40e5b3f1f48c5d1da8b1a449d4a /firmware/drivers
parent2404913f45e06fae60d15ed2bf3cfcd5e739ab51 (diff)
Fix "Upside down" behaviour on H10. We need to flip horizontally as well as vertically and also need to flip the scroll pad up/down.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11049 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 6536a34037..5add6cb817 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -704,6 +704,9 @@ static int button_flip(int button)
#if defined(BUTTON_UP) && defined(BUTTON_DOWN)
| BUTTON_UP | BUTTON_DOWN
#endif
+#if defined(BUTTON_SCROLL_UP) && defined(BUTTON_SCROLL_DOWN)
+ | BUTTON_SCROLL_UP | BUTTON_SCROLL_DOWN
+#endif
#if CONFIG_KEYPAD == RECORDER_PAD
| BUTTON_F1 | BUTTON_F3
#endif
@@ -719,6 +722,12 @@ static int button_flip(int button)
if (button & BUTTON_DOWN)
newbutton |= BUTTON_UP;
#endif
+#if defined(BUTTON_SCROLL_UP) && defined(BUTTON_SCROLL_DOWN)
+ if (button & BUTTON_SCROLL_UP)
+ newbutton |= BUTTON_SCROLL_DOWN;
+ if (button & BUTTON_SCROLL_DOWN)
+ newbutton |= BUTTON_SCROLL_UP;
+#endif
#if CONFIG_KEYPAD == RECORDER_PAD
if (button & BUTTON_F1)
newbutton |= BUTTON_F3;