summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-08-10 10:39:23 +0000
committerJens Arnold <amiconn@rockbox.org>2007-08-10 10:39:23 +0000
commitfc61a6790dc5d9cc9d0abdf0ec6c5fee4cb0999e (patch)
treebc47c07f9bfaa18adab9a7875493a1ae0ba9800f
parent9e05bd352721d0f049fa8929977d58a6085633aa (diff)
Make test_scanrate.rock build for M5.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14266 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/test_scanrate.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/test_scanrate.c b/apps/plugins/test_scanrate.c
index 6f3aaad3fb..c61a9d70fc 100644
--- a/apps/plugins/test_scanrate.c
+++ b/apps/plugins/test_scanrate.c
@@ -31,6 +31,13 @@ PLUGIN_HEADER
#define SCANRATE_INC BUTTON_RIGHT
#define SCANRATE_DEC BUTTON_LEFT
+#elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD
+#define SCANRATE_DONE BUTTON_POWER
+#define SCANRATE_FASTINC BUTTON_UP
+#define SCANRATE_FASTDEC BUTTON_DOWN
+#define SCANRATE_INC BUTTON_RIGHT
+#define SCANRATE_DEC BUTTON_LEFT
+
#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) \
|| (CONFIG_KEYPAD == IPOD_1G2G_PAD)
#define SCANRATE_DONE BUTTON_MENU
@@ -96,7 +103,7 @@ int plugin_main(void)
rb->lcd_putsxy(TEXT_X, 20, "so the block");
rb->lcd_putsxy(TEXT_X, 28, "stops moving.");
#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == ONDIO_PAD) \
- || (CONFIG_KEYPAD == IRIVER_H100_PAD)
+ || (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IAUDIO_X5M5_PAD)
rb->lcd_putsxy(TEXT_X, 40, "U/D: Coarse");
#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) \
|| (CONFIG_KEYPAD == IPOD_1G2G_PAD)