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/viewer.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/viewer.c')
| -rw-r--r-- | apps/plugins/viewer.c | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index a2afbc0..885ac70 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -246,17 +246,36 @@ PLUGIN_HEADER #elif CONFIG_KEYPAD == COWOND2_PAD #define VIEWER_QUIT BUTTON_POWER -#define VIEWER_PAGE_UP BUTTON_UP -#define VIEWER_PAGE_DOWN BUTTON_DOWN -#define VIEWER_SCREEN_LEFT BUTTON_LEFT -#define VIEWER_SCREEN_RIGHT BUTTON_RIGHT #define VIEWER_MENU BUTTON_MENU -#define VIEWER_AUTOSCROLL BUTTON_SELECT #else #error No keymap defined! #endif +#ifdef HAVE_TOUCHPAD +#ifndef VIEWER_QUIT +#define VIEWER_QUIT BUTTON_TOPLEFT +#endif +#ifndef VIEWER_PAGE_UP +#define VIEWER_PAGE_UP BUTTON_TOPMIDDLE +#endif +#ifndef VIEWER_PAGE_DOWN +#define VIEWER_PAGE_DOWN BUTTON_BOTTOMMIDDLE +#endif +#ifndef VIEWER_SCREEN_LEFT +#define VIEWER_SCREEN_LEFT BUTTON_MIDLEFT +#endif +#ifndef VIEWER_SCREEN_RIGHT +#define VIEWER_SCREEN_RIGHT BUTTON_MIDRIGHT +#endif +#ifndef VIEWER_MENU +#define VIEWER_MENU BUTTON_TOPRIGHT +#endif +#ifndef VIEWER_AUTOSCROLL +#define VIEWER_AUTOSCROLL BUTTON_CENTER +#endif +#endif + /* stuff for the bookmarking */ struct bookmarked_file_info { long file_position; @@ -1620,3 +1639,4 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) return PLUGIN_OK; } + |