forked from len0rd/rockbox
fix on button detection
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2748 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ab7c63814b
commit
b351656491
1 changed files with 11 additions and 1 deletions
|
|
@ -101,7 +101,17 @@ bool snow(void)
|
|||
snow_move();
|
||||
lcd_update();
|
||||
sleep(HZ/20);
|
||||
if (button_get(false))
|
||||
|
||||
if (button_get(false) == BUTTON_OFF)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue