summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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