mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
action: touchscreen: fix stuck repeated state of last action
This fixes the repeat_mode being stuck on Repeat Shuffle on the Hiby R1 WPS, and quick settings values being stuck at the last values for touch actions. Regression from9e254aca. The repeated state is used by the quick screen to detect repeated actions (seeb918ec5) so I also removed "historical baggage" note. Change-Id: Ic2a97058bbd17d232954ffe37f31a480ee11fe54
This commit is contained in:
parent
d72a93836c
commit
892fbe8d8f
1 changed files with 1 additions and 1 deletions
|
|
@ -430,6 +430,7 @@ static inline bool get_action_touchscreen(action_last_t *last, action_cur_t *cur
|
|||
{
|
||||
intptr_t data = button_get_data();
|
||||
long now = current_tick;
|
||||
last->repeated = false;
|
||||
|
||||
if (has_flag(last->button, BUTTON_TOUCHSCREEN) &&
|
||||
!has_flag(last->button, BUTTON_REL))
|
||||
|
|
@ -439,7 +440,6 @@ static inline bool get_action_touchscreen(action_last_t *last, action_cur_t *cur
|
|||
if (!has_flag(cur->button, BUTTON_REL))
|
||||
last->ts_data = data;
|
||||
|
||||
/* Historical baggage... may be unnecessary. */
|
||||
if (has_flag(cur->button, BUTTON_REPEAT))
|
||||
last->repeated = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue