1
0
Fork 0
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:
Linus Nielsen Feltzing 2004-07-26 23:32:37 +00:00
parent f749093c26
commit 5f8f4a392f

View file

@ -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;