fix: input delay workaround

This commit is contained in:
dark98
2026-09-25 21:14:07 +01:00
parent 31b93c2a9a
commit ea3ccd3b83
4 changed files with 60 additions and 65 deletions
+2 -5
View File
@@ -37,11 +37,8 @@ static void launcher_handle_input(input_action_t action)
if (action == INPUT_ACTION_CLICK) {
s_launcher_selected = (s_launcher_selected + 1) % s_app_count;
} else if (action == INPUT_ACTION_DOUBLE_CLICK) {
if (s_launcher_selected == 0) {
s_launcher_selected = s_app_count - 1;
} else {
s_launcher_selected--;
}
/* Tap 1 already stepped +1; stepping -2 results in a net -1 (previous entry) */
s_launcher_selected = (s_launcher_selected + s_app_count - 2) % s_app_count;
} else if (action == INPUT_ACTION_LONG_PRESS) {
sys_app_launch_by_index(s_launcher_selected);
}