forked from len0rd/rockbox
Plugin rework 2: (most) Compile-time keyboard configuration, for Ondio adaption. (all) Now using the default event handler, standard placement is now in switch() default case. (calendar, chip8) Fixed usb handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5295 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7c2496d35a
commit
79afbafa66
7 changed files with 235 additions and 91 deletions
|
@ -592,6 +592,7 @@ static bool any_events(struct shown *shown, bool force)
|
|||
if(rb->default_event_handler(button) == SYS_USB_CONNECTED)
|
||||
been_in_usb_mode = true;
|
||||
show_lines(lines_displayed,shown);
|
||||
rb->lcd_update();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -707,8 +708,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
break;
|
||||
|
||||
case BUTTON_PLAY:
|
||||
if (any_events(&shown, true))
|
||||
rb->usb_screen();
|
||||
any_events(&shown, true);
|
||||
draw_calendar(&shown);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue