diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-04-27 15:30:19 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-04-27 15:30:19 +0000 |
commit | 297e0504dad929f8990a654c4bc7a3e891ff41cb (patch) | |
tree | 7def4b8fba3c184f82415e840e9c32780848970b /apps/plugins/superdom.c | |
parent | 6b9b508aab29a406015e93c4808d87591173a083 (diff) |
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/superdom.c')
-rw-r--r-- | apps/plugins/superdom.c | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c index 9e3f984c6f..e99d456454 100644 --- a/apps/plugins/superdom.c +++ b/apps/plugins/superdom.c @@ -128,15 +128,31 @@ char buf[255]; #define SUPERDOM_CANCEL BUTTON_BACK #elif CONFIG_KEYPAD == COWOND2_PAD -#define SUPERDOM_OK BUTTON_SELECT -#define SUPERDOM_UP BUTTON_UP -#define SUPERDOM_LEFT BUTTON_LEFT -#define SUPERDOM_RIGHT BUTTON_RIGHT -#define SUPERDOM_DOWN BUTTON_DOWN -#define SUPERDOM_CANCEL BUTTON_MENU +#define SUPERDOM_CANCEL BUTTON_POWER #endif +#ifdef HAVE_TOUCHPAD +#ifndef SUPERDOM_OK +#define SUPERDOM_OK BUTTON_CENTER +#endif +#ifndef SUPERDOM_UP +#define SUPERDOM_UP BUTTON_TOPMIDDLE +#endif +#ifndef SUPERDOM_LEFT +#define SUPERDOM_LEFT BUTTON_MIDLEFT +#endif +#ifndef SUPERDOM_RIGHT +#define SUPERDOM_RIGHT BUTTON_MIDRIGHT +#endif +#ifndef SUPERDOM_DOWN +#define SUPERDOM_DOWN BUTTON_BOTTOMMIDDLE +#endif +#ifndef SUPERDOM_CANCEL +#define SUPERDOM_CANCEL BUTTON_TOPLEFT +#endif +#endif + #define SUPERDOM_QUIT 23 void gen_interest(void); |