forked from len0rd/rockbox
fix bubbles for good this time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11547 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
73e31d1af3
commit
65e0a0c934
1 changed files with 5 additions and 2 deletions
|
|
@ -2338,8 +2338,10 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock,
|
||||||
long start;
|
long start;
|
||||||
const struct button_mapping *plugin_contexts[]
|
const struct button_mapping *plugin_contexts[]
|
||||||
= {generic_left_right_fire,generic_actions};
|
= {generic_left_right_fire,generic_actions};
|
||||||
button = pluginlib_getaction(rb,timeout,plugin_contexts,2);
|
|
||||||
|
|
||||||
|
if (timeout < 0)
|
||||||
|
timeout = 0;
|
||||||
|
button = pluginlib_getaction(rb,timeout,plugin_contexts,2);
|
||||||
#ifdef HAS_BUTTON_HOLD
|
#ifdef HAS_BUTTON_HOLD
|
||||||
if (rb->button_hold())
|
if (rb->button_hold())
|
||||||
button = BUBBLES_START;
|
button = BUBBLES_START;
|
||||||
|
|
@ -2390,7 +2392,8 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock,
|
||||||
case BUBBLES_QUIT: /* end the game */
|
case BUBBLES_QUIT: /* end the game */
|
||||||
return BB_END;
|
return BB_END;
|
||||||
|
|
||||||
case ACTION_UNKNOWN: /* no button pressed */
|
case ACTION_UNKNOWN:
|
||||||
|
case ACTION_NONE: /* no button pressed */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue