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:
Roman Artiukhin 2024-10-02 18:52:57 +03:00 committed by Solomon Peachy
parent 5a3d62dabb
commit c354e0bd1f

View file

@ -1217,7 +1217,8 @@ bool action_userabort(int timeout)
void action_wait_for_release(void)
{
action_last.wait_for_release = true;
if (!(action_last.button & BUTTON_REL))
action_last.wait_for_release = true;
}
int get_action(int context, int timeout)