From 957cffad8d8e51e51d51d5c7e81b40519774d584 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 23 Oct 2004 00:05:42 +0000 Subject: Plugin rework 6: (all) Now using the default event handler, standard placement is in switch() default case. (chessclock) Compile-time keyboard configuration, for Ondio adaption. Fixed remaining issues with bitmap lcd -> compile for all platforms, as originally intended. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5327 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/wormlet.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/plugins/wormlet.c') diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index be089cdb7c..8ded341bec 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c @@ -1967,9 +1967,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) } break; - case SYS_USB_CONNECTED: - rb->usb_screen(); - return PLUGIN_USB_CONNECTED; + default: + if (rb->default_event_handler(button) == SYS_USB_CONNECTED) + return PLUGIN_USB_CONNECTED; + break; } } while (button != BUTTON_PLAY && button != BUTTON_OFF && button != BUTTON_ON); -- cgit v1.2.3