1
0
Fork 0
forked from len0rd/rockbox

Adapted to the new event handling

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4957 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-07-26 23:35:15 +00:00
parent 147d0eb5d4
commit 6a635ce6ed

View file

@ -104,8 +104,8 @@ enum plugin_status loop(void)
#endif #endif
) )
return PLUGIN_OK; return PLUGIN_OK;
if (button==SYS_USB_CONNECTED) {
rb->usb_screen(); if (rb->default_event_handler(button) == SYS_USB_CONNECTED) {
return PLUGIN_USB_CONNECTED; return PLUGIN_USB_CONNECTED;
} }
} while (!(button&(BUTTON_REL|BUTTON_REPEAT))); } while (!(button&(BUTTON_REL|BUTTON_REPEAT)));