summaryrefslogtreecommitdiffstats
path: root/apps/plugins/mosaique.c
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2008-04-27 15:30:19 +0000
committerRob Purchase <shotofadds@rockbox.org>2008-04-27 15:30:19 +0000
commit297e0504dad929f8990a654c4bc7a3e891ff41cb (patch)
tree7def4b8fba3c184f82415e840e9c32780848970b /apps/plugins/mosaique.c
parent6b9b508aab29a406015e93c4808d87591173a083 (diff)
downloadrockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.gz
rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.bz2
rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.zip
FS#8708: D2/m:robe500 touchscreen keymaps by Andreas Mueller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17261 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mosaique.c')
-rw-r--r--apps/plugins/mosaique.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/plugins/mosaique.c b/apps/plugins/mosaique.c
index 8163685366..9545f89f59 100644
--- a/apps/plugins/mosaique.c
+++ b/apps/plugins/mosaique.c
@@ -124,13 +124,23 @@ PLUGIN_HEADER
#elif CONFIG_KEYPAD == COWOND2_PAD
#define MOSAIQUE_QUIT BUTTON_POWER
-#define MOSAIQUE_SPEED BUTTON_RIGHT
-#define MOSAIQUE_RESTART BUTTON_MENU
#else
#error No keymap defined!
#endif
+#ifdef HAVE_TOUCHPAD
+#ifndef MOSAIQUE_QUIT
+#define MOSAIQUE_QUIT BUTTON_TOPLEFT
+#endif
+#ifndef MOSAIQUE_SPEED
+#define MOSAIQUE_SPEED BUTTON_MIDRIGHT
+#endif
+#ifndef MOSAIQUE_RESTART
+#define MOSAIQUE_RESTART BUTTON_CENTER
+#endif
+#endif
+
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
{
int button;
@@ -231,3 +241,4 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
}
}
+