summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 23:32:37 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 23:32:37 +0000
commit5f8f4a392f0579822aef97b3550ae2c5d9dae21a (patch)
tree6389434d1fd36347c4a4230becaccff9f6867666 /apps/plugins
parentf749093c267eccfdd8141107989a664c5ccec511 (diff)
downloadrockbox-5f8f4a392f0579822aef97b3550ae2c5d9dae21a.tar.gz
rockbox-5f8f4a392f0579822aef97b3550ae2c5d9dae21a.zip
Adapted to the new event handler concept
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4955 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/bounce.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index 6715b0b1fe..e31c15eb2f 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -290,18 +290,14 @@ static int loopit(void)
290 { 290 {
291 b = rb->button_get_w_tmo(HZ/10); 291 b = rb->button_get_w_tmo(HZ/10);
292 if ( b == (BUTTON_OFF|BUTTON_REL) ) 292 if ( b == (BUTTON_OFF|BUTTON_REL) )
293 return 0; 293 return PLUGIN_OK;
294
295 if ( b == SYS_USB_CONNECTED) {
296 rb->usb_screen();
297 return 0;
298 }
299
300 if ( b == (BUTTON_ON|BUTTON_REL) )
301 return 1;
302 else if(b != BUTTON_NONE) 294 else if(b != BUTTON_NONE)
303 timeout=20; 295 timeout=20;
304 296
297 if ( rb->default_event_handler(b) == SYS_USB_CONNECTED) {
298 return PLUGIN_USB_CONNECTED;
299 }
300
305 y+= speed[ysanke&15] + values[NUM_YADD].num; 301 y+= speed[ysanke&15] + values[NUM_YADD].num;
306 x+= speed[xsanke&15] + values[NUM_XADD].num; 302 x+= speed[xsanke&15] + values[NUM_XADD].num;
307 303