diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-10-16 00:07:43 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-10-16 00:07:43 +0000 |
commit | cc8cff2ec02caf29b7d0cf565e1f9e2ebd9b0e99 (patch) | |
tree | a5427744a2aa55546f3d5982e15bed2a8d5e5f49 /apps/plugins/jpeg.c | |
parent | 4a5df8e8d178702d603bd7cd185525c7ff6a3064 (diff) |
Plugin rework 1: (most) Compile-time keyboard configuration, for Ondio adaption. (all) Now using the default event handler, standard placement is now in switch() default case. (snow) Made USB aware. (video) Added contrast setting to Ondio version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5291 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/jpeg.c')
-rw-r--r-- | apps/plugins/jpeg.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index 7d8fab7456..c601712b11 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -33,10 +33,12 @@ #if CONFIG_KEYPAD == RECORDER_PAD #define JPEG_ZOOM_IN BUTTON_PLAY #define JPEG_ZOOM_OUT BUTTON_ON + #elif CONFIG_KEYPAD == ONDIO_PAD #define JPEG_ZOOM_PRE BUTTON_MENU #define JPEG_ZOOM_IN (BUTTON_MENU | BUTTON_REL) #define JPEG_ZOOM_OUT (BUTTON_MENU | BUTTON_REPEAT) + #endif /******************************* Globals ***********************************/ @@ -1527,10 +1529,6 @@ int scroll_bmp(struct t_disp* pdisp) button = rb->button_get(true); - if (rb->default_event_handler_ex(button, cleanup, NULL) - == SYS_USB_CONNECTED) - return PLUGIN_USB_CONNECTED; - switch(button) { case BUTTON_LEFT: @@ -1617,6 +1615,13 @@ int scroll_bmp(struct t_disp* pdisp) case BUTTON_OFF: return PLUGIN_OK; + + default: + if (rb->default_event_handler_ex(button, cleanup, NULL) + == SYS_USB_CONNECTED) + return PLUGIN_USB_CONNECTED; + break; + } /* switch */ if (button != BUTTON_NONE) |