summaryrefslogtreecommitdiffstats
path: root/apps/plugins/blackjack.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/blackjack.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/blackjack.c')
-rw-r--r--apps/plugins/blackjack.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index 91e70e4d1b..945048a7ed 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -484,6 +484,20 @@ enum {
#define BJACK_RIGHT BUTTON_RIGHT
#define BJACK_LEFT BUTTON_LEFT
+#elif CONFIG_KEYPAD == HM60X_PAD
+#define BJACK_SELECT_NAME "SELECT"
+#define BJACK_STAY_NAME "UP+POWER"
+#define BJACK_QUIT_NAME "POWER"
+#define BJACK_DOUBLE_NAME "DOWN+POWER"
+#define BJACK_SELECT BUTTON_SELECT
+#define BJACK_QUIT BUTTON_POWER
+#define BJACK_STAY (BUTTON_UP|BUTTON_POWER)
+#define BJACK_DOUBLEDOWN (BUTTON_DOWN|BUTTON_POWER)
+#define BJACK_UP BUTTON_UP
+#define BJACK_DOWN BUTTON_DOWN
+#define BJACK_RIGHT BUTTON_RIGHT
+#define BJACK_LEFT BUTTON_LEFT
+
#else
#error No keymap defined!
#endif