summaryrefslogtreecommitdiffstats
path: root/apps/plugins/star.c
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-04-06 20:17:27 +0400
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-04-19 17:31:13 +0400
commit6ee3fc81d9299693da29c204b6ebe243caeae46d (patch)
treeb450288696536193b975d669e20400d4d682b754 /apps/plugins/star.c
parent397863ab3d45bdd8292512a22cd3b436cf281c76 (diff)
downloadrockbox-6ee3fc81d9299693da29c204b6ebe243caeae46d.tar.gz
rockbox-6ee3fc81d9299693da29c204b6ebe243caeae46d.tar.bz2
rockbox-6ee3fc81d9299693da29c204b6ebe243caeae46d.zip
hm801: Add support for plugins.
Change-Id: I81654db87d38324d8680a56bcdb7e9922ee5b619
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r--apps/plugins/star.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index bc70b11070..4697ffb892 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -514,6 +514,23 @@
#define STAR_LEVEL_DOWN_NAME "POWER + DOWN"
#define STAR_LEVEL_REPEAT_NAME "POWER + SELECT"
+#elif (CONFIG_KEYPAD == HM801_PAD)
+
+#define STAR_QUIT BUTTON_POWER
+#define STAR_LEFT BUTTON_LEFT
+#define STAR_RIGHT BUTTON_RIGHT
+#define STAR_UP BUTTON_UP
+#define STAR_DOWN BUTTON_DOWN
+#define STAR_TOGGLE_CONTROL BUTTON_SELECT
+#define STAR_LEVEL_UP BUTTON_NEXT
+#define STAR_LEVEL_DOWN BUTTON_PREV
+#define STAR_LEVEL_REPEAT BUTTON_PLAY
+#define STAR_TOGGLE_CONTROL_NAME "SELECT"
+#define STAR_QUIT_NAME "POWER"
+#define STAR_LEVEL_UP_NAME "NEXT"
+#define STAR_LEVEL_DOWN_NAME "PREV"
+#define STAR_LEVEL_REPEAT_NAME "PLAY"
+
#else
#error No keymap defined!
#endif