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/flashlight.c | |
| parent | 6b9b508aab29a406015e93c4808d87591173a083 (diff) | |
| download | rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.zip rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.gz rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.bz2 rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.xz | |
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/flashlight.c')
| -rw-r--r-- | apps/plugins/flashlight.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/plugins/flashlight.c b/apps/plugins/flashlight.c index c3c061b..e502d0e 100644 --- a/apps/plugins/flashlight.c +++ b/apps/plugins/flashlight.c @@ -70,14 +70,27 @@ PLUGIN_HEADER # define FLASHLIGHT_RIGHT BUTTON_RIGHT #elif CONFIG_KEYPAD == COWOND2_PAD -# define FLASHLIGHT_LEFT BUTTON_LEFT -# define FLASHLIGHT_RIGHT BUTTON_RIGHT #else # error Missing key definitions for this keypad #endif #endif +#ifdef HAVE_TOUCHPAD +# ifndef FLASHLIGHT_LEFT +# define FLASHLIGHT_LEFT BUTTON_MIDLEFT +# endif +# ifndef FLASHLIGHT_RIGHT +# define FLASHLIGHT_RIGHT BUTTON_MIDRIGHT +# endif +# ifndef FLASHLIGHT_NEXT +# define FLASHLIGHT_NEXT BUTTON_TOPMIDDLE +# endif +# ifndef FLASHLIGHT_PREV +# define FLASHLIGHT_PREV BUTTON_BOTTOMMIDDLE +# endif +#endif + static struct plugin_api* rb; /* global api struct pointer */ #ifdef HAVE_LCD_COLOR |