summaryrefslogtreecommitdiffstats
path: root/apps/plugins/wormlet.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-04-10 17:28:26 +0000
committerThomas Martitz <kugel@rockbox.org>2009-04-10 17:28:26 +0000
commite6cbad69745455d0ad23004c609a909a2cdabcf4 (patch)
treef512eab0f41420969f750138b76b46931bf57956 /apps/plugins/wormlet.c
parentec797ed62225a5f78f37e9342ac6e183332f795b (diff)
downloadrockbox-e6cbad69745455d0ad23004c609a909a2cdabcf4.tar.gz
rockbox-e6cbad69745455d0ad23004c609a909a2cdabcf4.tar.bz2
rockbox-e6cbad69745455d0ad23004c609a909a2cdabcf4.zip
FS#10075 - FUZE: QUIT Plugin by selecting BUTTON_HOME by Johannes Schwarz. Updates the plugin keymap to use Long Home to exit plugins to be more inline with the core keymap.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20680 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/wormlet.c')
-rw-r--r--apps/plugins/wormlet.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index 52b7566e40..cc8bf07d91 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -165,9 +165,7 @@ PLUGIN_HEADER
#define PLAYERS_TEXT "Up/Down"
#define WORMS_TEXT "Left/Right"
-
-#elif (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \
- (CONFIG_KEYPAD == SANSA_FUZE_PAD)
+#elif (CONFIG_KEYPAD == SANSA_CLIP_PAD)
#define BTN_DIR_UP BUTTON_UP
#define BTN_DIR_DOWN BUTTON_DOWN
@@ -180,6 +178,19 @@ PLUGIN_HEADER
#define PLAYERS_TEXT "Up/Down"
#define WORMS_TEXT "Left/Right"
+#elif (CONFIG_KEYPAD == SANSA_FUZE_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_SELECT
+#define BTN_QUIT (BUTTON_HOME|BUTTON_REPEAT)
+#define BTN_STOPRESET (BUTTON_SELECT | BUTTON_UP)
+
+#define PLAYERS_TEXT "Up/Down"
+#define WORMS_TEXT "Left/Right"
+
#elif (CONFIG_KEYPAD == SANSA_M200_PAD)
#define BTN_DIR_UP BUTTON_UP