mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix prev/next folder action leads to immediate ff/rewind
Removed check that was introduced in54e6bafa
. This check doesn't work in WPS as BUTTON_NONE actions come while you still have button pressed. I believe the proper fix for this is already commited inc354e0bd
. Fixes FS#13370 Change-Id: I86e92c296c0bfa42caaed9cb3540e311630daf9c
This commit is contained in:
parent
eb2d596d72
commit
7912bf3bee
1 changed files with 1 additions and 16 deletions
|
@ -323,22 +323,7 @@ static inline bool action_poll_button(action_last_t *last, action_cur_t *cur)
|
|||
int *button = &cur->button;
|
||||
|
||||
*button = button_get_w_tmo(cur->timeout);
|
||||
/* **************************************************************************
|
||||
* if action_wait_for_release() was called without a button being pressed
|
||||
* then actually waiting for release would do the wrong thing, i.e.
|
||||
* the next key press is entirely ignored. So, if here comes a normal
|
||||
* button press (neither release nor repeat) the press is a fresh one and
|
||||
* no point in waiting for release
|
||||
*
|
||||
* This logic doesn't work for touchscreen which can send normal
|
||||
* button events repeatedly before the first repeat (as in BUTTON_REPEAT).
|
||||
* These cannot be distinguished from the very first touch
|
||||
* but there's nothing we can do about it here
|
||||
*/
|
||||
if (*button == BUTTON_NONE || (*button & (BUTTON_REPEAT|BUTTON_REL)) == 0)
|
||||
{
|
||||
last->wait_for_release = false;
|
||||
}
|
||||
|
||||
/* ********************************************************
|
||||
* Can return button immediately, sys_event & multimedia
|
||||
* button presses don't use the action system, Data from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue