summaryrefslogtreecommitdiff
path: root/apps/plugins/test_touchscreen.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-01-27 00:14:53 +0100
committerThomas Martitz <kugel@rockbox.org>2012-01-27 09:15:05 +0100
commit049f3c782a74258640e4f5c165496c282b4203dd (patch)
treec12fb226b08e1c78ba6504dbcbc5ba62a41ce0a8 /apps/plugins/test_touchscreen.c
parentaba5c47dd6369a3612be4165a16054ebd6d74af3 (diff)
downloadrockbox-049f3c782a74258640e4f5c165496c282b4203dd.zip
rockbox-049f3c782a74258640e4f5c165496c282b4203dd.tar.gz
rockbox-049f3c782a74258640e4f5c165496c282b4203dd.tar.bz2
rockbox-049f3c782a74258640e4f5c165496c282b4203dd.tar.xz
test_touchscreen.rock: Add keymap for sdl and android.
Change-Id: Ie56414c1a025bd786bf9e6edce1c09e6626f9f4a
Diffstat (limited to 'apps/plugins/test_touchscreen.c')
-rw-r--r--apps/plugins/test_touchscreen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/test_touchscreen.c b/apps/plugins/test_touchscreen.c
index 0c9cdc7..b0804f7 100644
--- a/apps/plugins/test_touchscreen.c
+++ b/apps/plugins/test_touchscreen.c
@@ -31,6 +31,12 @@
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define TOUCHSCREEN_QUIT BUTTON_POWER
#define TOUCHSCREEN_TOGGLE BUTTON_MENU
+#elif (CONFIG_KEYPAD == ANDROID_PAD)
+#define TOUCHSCREEN_QUIT BUTTON_BACK
+#define TOUCHSCREEN_TOGGLE BUTTON_MENU
+#elif (CONFIG_KEYPAD == SDL_PAD)
+#define TOUCHSCREEN_QUIT BUTTON_MIDLEFT
+#define TOUCHSCREEN_TOGGLE BUTTON_CENTER
#endif
/* plugin entry point */