forked from len0rd/rockbox
Allow button repeat events in the Brickmania main menu. Makes it easier to scroll through the options on iPods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12443 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f05b9e3bd5
commit
a45e835d75
1 changed files with 2 additions and 0 deletions
|
|
@ -1028,6 +1028,7 @@ int game_menu(int when)
|
||||||
button = rb->button_get(true);
|
button = rb->button_get(true);
|
||||||
switch(button) {
|
switch(button) {
|
||||||
case UP:
|
case UP:
|
||||||
|
case UP | BUTTON_REPEAT:
|
||||||
if (cur==0)
|
if (cur==0)
|
||||||
cur = MENU_LENGTH-1;
|
cur = MENU_LENGTH-1;
|
||||||
else
|
else
|
||||||
|
|
@ -1038,6 +1039,7 @@ int game_menu(int when)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DOWN:
|
case DOWN:
|
||||||
|
case DOWN | BUTTON_REPEAT:
|
||||||
if (cur==MENU_LENGTH-1)
|
if (cur==MENU_LENGTH-1)
|
||||||
cur = 0;
|
cur = 0;
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue