diff options
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 a2afbc0641..885ac70bea 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -246,17 +246,36 @@ PLUGIN_HEADER | |||
246 | 246 | ||
247 | #elif CONFIG_KEYPAD == COWOND2_PAD | 247 | #elif CONFIG_KEYPAD == COWOND2_PAD |
248 | #define VIEWER_QUIT BUTTON_POWER | 248 | #define VIEWER_QUIT BUTTON_POWER |
249 | #define VIEWER_PAGE_UP BUTTON_UP | ||
250 | #define VIEWER_PAGE_DOWN BUTTON_DOWN | ||
251 | #define VIEWER_SCREEN_LEFT BUTTON_LEFT | ||
252 | #define VIEWER_SCREEN_RIGHT BUTTON_RIGHT | ||
253 | #define VIEWER_MENU BUTTON_MENU | 249 | #define VIEWER_MENU BUTTON_MENU |
254 | #define VIEWER_AUTOSCROLL BUTTON_SELECT | ||
255 | 250 | ||
256 | #else | 251 | #else |
257 | #error No keymap defined! | 252 | #error No keymap defined! |
258 | #endif | 253 | #endif |
259 | 254 | ||
255 | #ifdef HAVE_TOUCHPAD | ||
256 | #ifndef VIEWER_QUIT | ||
257 | #define VIEWER_QUIT BUTTON_TOPLEFT | ||
258 | #endif | ||
259 | #ifndef VIEWER_PAGE_UP | ||
260 | #define VIEWER_PAGE_UP BUTTON_TOPMIDDLE | ||
261 | #endif | ||
262 | #ifndef VIEWER_PAGE_DOWN | ||
263 | #define VIEWER_PAGE_DOWN BUTTON_BOTTOMMIDDLE | ||
264 | #endif | ||
265 | #ifndef VIEWER_SCREEN_LEFT | ||
266 | #define VIEWER_SCREEN_LEFT BUTTON_MIDLEFT | ||
267 | #endif | ||
268 | #ifndef VIEWER_SCREEN_RIGHT | ||
269 | #define VIEWER_SCREEN_RIGHT BUTTON_MIDRIGHT | ||
270 | #endif | ||
271 | #ifndef VIEWER_MENU | ||
272 | #define VIEWER_MENU BUTTON_TOPRIGHT | ||
273 | #endif | ||
274 | #ifndef VIEWER_AUTOSCROLL | ||
275 | #define VIEWER_AUTOSCROLL BUTTON_CENTER | ||
276 | #endif | ||
277 | #endif | ||
278 | |||
260 | /* stuff for the bookmarking */ | 279 | /* stuff for the bookmarking */ |
261 | struct bookmarked_file_info { | 280 | struct bookmarked_file_info { |
262 | long file_position; | 281 | long file_position; |
@@ -1620,3 +1639,4 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
1620 | return PLUGIN_OK; | 1639 | return PLUGIN_OK; |
1621 | } | 1640 | } |
1622 | 1641 | ||
1642 | |||