summaryrefslogtreecommitdiffstats
path: root/apps/plugins/star.c
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-03-23 22:32:50 +0400
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-04-19 17:31:13 +0400
commit397863ab3d45bdd8292512a22cd3b436cf281c76 (patch)
treea74a1fd6084875340f978ce67d4dc5ff8716c172 /apps/plugins/star.c
parent8187d8d5d158bef269048694fd6e65d89263cd42 (diff)
downloadrockbox-397863ab3d45bdd8292512a22cd3b436cf281c76.tar.gz
rockbox-397863ab3d45bdd8292512a22cd3b436cf281c76.tar.bz2
rockbox-397863ab3d45bdd8292512a22cd3b436cf281c76.zip
hm60x: Add support for plugins.
Change-Id: I4cad0881c8249f163680a280f70d1a0b36248da8
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 e4f4857d61..bc70b11070 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -497,6 +497,23 @@
#define STAR_LEVEL_DOWN_NAME "Power"
#define STAR_LEVEL_REPEAT_NAME "User"
+#elif (CONFIG_KEYPAD == HM60X_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_POWER | BUTTON_UP)
+#define STAR_LEVEL_DOWN (BUTTON_POWER | BUTTON_DOWN)
+#define STAR_LEVEL_REPEAT (BUTTON_POWER | BUTTON_SELECT)
+#define STAR_TOGGLE_CONTROL_NAME "SELECT"
+#define STAR_QUIT_NAME "POWER"
+#define STAR_LEVEL_UP_NAME "POWER + UP"
+#define STAR_LEVEL_DOWN_NAME "POWER + DOWN"
+#define STAR_LEVEL_REPEAT_NAME "POWER + SELECT"
+
#else
#error No keymap defined!
#endif