forked from len0rd/rockbox
Adapted to the new event handler concept
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4955 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f749093c26
commit
5f8f4a392f
1 changed files with 5 additions and 9 deletions
|
|
@ -290,18 +290,14 @@ static int loopit(void)
|
|||
{
|
||||
b = rb->button_get_w_tmo(HZ/10);
|
||||
if ( b == (BUTTON_OFF|BUTTON_REL) )
|
||||
return 0;
|
||||
|
||||
if ( b == SYS_USB_CONNECTED) {
|
||||
rb->usb_screen();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( b == (BUTTON_ON|BUTTON_REL) )
|
||||
return 1;
|
||||
return PLUGIN_OK;
|
||||
else if(b != BUTTON_NONE)
|
||||
timeout=20;
|
||||
|
||||
if ( rb->default_event_handler(b) == SYS_USB_CONNECTED) {
|
||||
return PLUGIN_USB_CONNECTED;
|
||||
}
|
||||
|
||||
y+= speed[ysanke&15] + values[NUM_YADD].num;
|
||||
x+= speed[xsanke&15] + values[NUM_XADD].num;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue