summaryrefslogtreecommitdiffstats
path: root/apps/plugins/star.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-06-29 16:09:28 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-01-02 08:10:01 -0500
commitd4942cc74c82c465ea395637c77ed06565b8b497 (patch)
tree8c1fa737c93f8a2ade5a1566857dc4dc8f578bd6 /apps/plugins/star.c
parentaf9459a7992596e932c6d8cc0a6366ff0f0b0fca (diff)
downloadrockbox-d4942cc74c82c465ea395637c77ed06565b8b497.tar.gz
rockbox-d4942cc74c82c465ea395637c77ed06565b8b497.tar.bz2
rockbox-d4942cc74c82c465ea395637c77ed06565b8b497.zip
Add Xuelin iHIFI 770/770C/800 support
Taken from the xvortex fork (Roman Stolyarov) Ported, rebased, and cleaned up by myself. Change-Id: I7b2bca2d29502f2e4544e42f3d122786dd4b7978
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r--apps/plugins/star.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index bcddab8f20..fdf67bec4c 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -639,6 +639,38 @@
#define STAR_LEVEL_DOWN_NAME "PLAY + PREV"
#define STAR_LEVEL_REPEAT_NAME "PLAY + OPTION"
+#elif CONFIG_KEYPAD == IHIFI_770_PAD
+#define STAR_QUIT BUTTON_POWER
+#define STAR_LEFT BUTTON_HOME
+#define STAR_RIGHT BUTTON_VOL_DOWN
+#define STAR_UP BUTTON_PREV
+#define STAR_DOWN BUTTON_NEXT
+#define STAR_TOGGLE_CONTROL BUTTON_PLAY
+#define STAR_LEVEL_UP (BUTTON_POWER | BUTTON_VOL_UP)
+#define STAR_LEVEL_DOWN (BUTTON_POWER | BUTTON_VOL_DOWN)
+#define STAR_LEVEL_REPEAT (BUTTON_POWER | BUTTON_HOME)
+#define STAR_TOGGLE_CONTROL_NAME "PLAY"
+#define STAR_QUIT_NAME "POWER"
+#define STAR_LEVEL_UP_NAME "POWER + VOL+"
+#define STAR_LEVEL_DOWN_NAME "POWER + VOL-"
+#define STAR_LEVEL_REPEAT_NAME "POWER + HOME"
+
+#elif CONFIG_KEYPAD == IHIFI_800_PAD
+#define STAR_QUIT BUTTON_POWER
+#define STAR_LEFT BUTTON_HOME
+#define STAR_RIGHT BUTTON_VOL_DOWN
+#define STAR_UP BUTTON_PREV
+#define STAR_DOWN BUTTON_NEXT
+#define STAR_TOGGLE_CONTROL BUTTON_PLAY
+#define STAR_LEVEL_UP (BUTTON_POWER | BUTTON_VOL_UP)
+#define STAR_LEVEL_DOWN (BUTTON_POWER | BUTTON_VOL_DOWN)
+#define STAR_LEVEL_REPEAT (BUTTON_POWER | BUTTON_HOME)
+#define STAR_TOGGLE_CONTROL_NAME "PLAY"
+#define STAR_QUIT_NAME "POWER"
+#define STAR_LEVEL_UP_NAME "POWER + VOL+"
+#define STAR_LEVEL_DOWN_NAME "POWER + VOL-"
+#define STAR_LEVEL_REPEAT_NAME "POWER + HOME"
+
#else
#error No keymap defined!
#endif