summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-05-23 19:58:37 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-05-23 19:58:37 +0000
commit7db4270d1a31238979b5540f3a7b22d988e11451 (patch)
tree20add3a4b0d07a5afc9b5e2da78deca7c54d8229 /apps
parent25f386017cae545310dcaa7afd479afd498ef863 (diff)
downloadrockbox-7db4270d1a31238979b5540f3a7b22d988e11451.tar.gz
rockbox-7db4270d1a31238979b5540f3a7b22d988e11451.tar.bz2
rockbox-7db4270d1a31238979b5540f3a7b22d988e11451.zip
make wormlet work on iaudio, patch by Mustapha Senhaji
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9979 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/SOURCES2
-rw-r--r--apps/plugins/wormlet.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index edcbe3e53b..5eba2c4856 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -64,7 +64,7 @@ tetrox.c
video.c
#endif
vu_meter.c
-#if (CONFIG_KEYPAD != IAUDIO_X5_PAD) && (CONFIG_KEYPAD != IPOD_3G_PAD)
+#if CONFIG_KEYPAD != IPOD_3G_PAD
wormlet.c
#endif
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index 95ccc4a9f2..c23a7ea4af 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -99,6 +99,19 @@ PLUGIN_HEADER
#define PLAYERS_TEXT "Up/Down"
#define WORMS_TEXT "Left/Right"
+#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
+
+#define BTN_DIR_UP BUTTON_UP
+#define BTN_DIR_DOWN BUTTON_DOWN
+#define BTN_DIR_LEFT BUTTON_LEFT
+#define BTN_DIR_RIGHT BUTTON_RIGHT
+#define BTN_STARTPAUSE BUTTON_PLAY
+#define BTN_QUIT BUTTON_POWER
+#define BTN_STOPRESET BUTTON_REC
+
+#define PLAYERS_TEXT "Up/Down"
+#define WORMS_TEXT "Left/Right"
+
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
#define BTN_DIR_UP BUTTON_UP