mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
buttons: Don't set wait_for_release for release action
Fixes ignored button press in yes/no screen. It depends on keymapping - this issue happens if action before wait_for_release is mapped on release action. Something like: { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT } Change-Id: Idc6a57ef7a7daf75c21c9887e07fbefc814b6ae3
This commit is contained in:
parent
5a3d62dabb
commit
c354e0bd1f
1 changed files with 2 additions and 1 deletions
|
@ -1217,6 +1217,7 @@ bool action_userabort(int timeout)
|
|||
|
||||
void action_wait_for_release(void)
|
||||
{
|
||||
if (!(action_last.button & BUTTON_REL))
|
||||
action_last.wait_for_release = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue