forked from len0rd/rockbox
puzzles: always reset input state before pause menu
We were improperly conditioning the state reset with `do_pausemenu'. We should reset the input state no matter what. Change-Id: Iaafc59b95e9f1f053b57a34f0f28f7c672c0e327
This commit is contained in:
parent
987c6575b3
commit
7d005335ba
1 changed files with 3 additions and 3 deletions
|
@ -1740,6 +1740,9 @@ static int process_input(int tmo, bool do_pausemenu)
|
|||
|
||||
if(button == BTN_PAUSE)
|
||||
{
|
||||
last_keystate = 0;
|
||||
accept_input = true;
|
||||
|
||||
if(do_pausemenu)
|
||||
{
|
||||
/* quick hack to preserve the clipping state */
|
||||
|
@ -1752,9 +1755,6 @@ static int process_input(int tmo, bool do_pausemenu)
|
|||
if(orig_clipped)
|
||||
rb_clip(NULL, clip_rect.x, clip_rect.y, clip_rect.width, clip_rect.height);
|
||||
|
||||
last_keystate = 0;
|
||||
accept_input = true;
|
||||
|
||||
return rc;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue