summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2009-07-07 03:26:57 +0000
committerMark Arigo <markarigo@gmail.com>2009-07-07 03:26:57 +0000
commitfb224bd0f93389a30960102e40280f8901b9d834 (patch)
tree742761cdba8225f9c9a5b02c56cf6f793e4d257d /firmware/target/arm
parenta9edc8440d5e0574f2f05c378ca5f0fac7202734 (diff)
downloadrockbox-fb224bd0f93389a30960102e40280f8901b9d834.tar.gz
rockbox-fb224bd0f93389a30960102e40280f8901b9d834.tar.bz2
rockbox-fb224bd0f93389a30960102e40280f8901b9d834.zip
Philips SA9200: fix the buttons to work with flip screen mode (does anyone use this?). Change to conventional BUTTON_LEFT/BUTTON_RIGHT names and flip the remaining directional buttons.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21698 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rwxr-xr-xfirmware/target/arm/philips/sa9200/button-sa9200.c8
-rwxr-xr-xfirmware/target/arm/philips/sa9200/button-target.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/firmware/target/arm/philips/sa9200/button-sa9200.c b/firmware/target/arm/philips/sa9200/button-sa9200.c
index be37111ecb..0be77c66c9 100755
--- a/firmware/target/arm/philips/sa9200/button-sa9200.c
+++ b/firmware/target/arm/philips/sa9200/button-sa9200.c
@@ -51,10 +51,10 @@ void button_int(void)
if (val == MEP_BUTTON_HEADER)
{
/* Buttons packet */
- if (data[1] & 0x1) int_btn |= BUTTON_FFWD;
- if (data[1] & 0x2) int_btn |= BUTTON_RIGHT;
- if (data[1] & 0x4) int_btn |= BUTTON_LEFT;
- if (data[1] & 0x8) int_btn |= BUTTON_REW;
+ if (data[1] & 0x1) int_btn |= BUTTON_RIGHT;
+ if (data[1] & 0x2) int_btn |= BUTTON_NEXT;
+ if (data[1] & 0x4) int_btn |= BUTTON_PREV;
+ if (data[1] & 0x8) int_btn |= BUTTON_LEFT;
if (data[2] & 0x1) int_btn |= BUTTON_MENU;
}
else if (val == MEP_ABSOLUTE_HEADER)
diff --git a/firmware/target/arm/philips/sa9200/button-target.h b/firmware/target/arm/philips/sa9200/button-target.h
index 6259aa0737..faed943208 100755
--- a/firmware/target/arm/philips/sa9200/button-target.h
+++ b/firmware/target/arm/philips/sa9200/button-target.h
@@ -43,10 +43,10 @@ void button_int(void);
#define BUTTON_POWER 0x00000001
#define BUTTON_PLAY 0x00000002
#define BUTTON_MENU 0x00000004
-#define BUTTON_LEFT 0x00000008
-#define BUTTON_RIGHT 0x00000010
-#define BUTTON_REW 0x00000020
-#define BUTTON_FFWD 0x00000040
+#define BUTTON_PREV 0x00000008
+#define BUTTON_NEXT 0x00000010
+#define BUTTON_LEFT 0x00000020
+#define BUTTON_RIGHT 0x00000040
#define BUTTON_UP 0x00000080
#define BUTTON_DOWN 0x00000100
#define BUTTON_VOL_UP 0x00000200