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 from 9e254aca. The repeated state is used by the quick screen to detect repeated actions (see b918ec5) so I also removed "historical baggage" note.

Change-Id: Ic2a97058bbd17d232954ffe37f31a480ee11fe54
This commit is contained in:
Roman Artiukhin 2026-05-31 13:16:47 +03:00
parent d72a93836c
commit 892fbe8d8f

View file

@ -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;
}