feat: Carousel Launcher & Triple Click Home

This commit is contained in:
dark98
2026-09-25 21:23:57 +01:00
parent ea3ccd3b83
commit 0426ea79f5
5 changed files with 56 additions and 38 deletions
+2 -4
View File
@@ -21,13 +21,11 @@ static void launcher_update(uint32_t delta_ms)
sys_status_get(&status);
sys_gfx_draw_status_bar(&status);
sys_gfx_draw_str_3x5(2, 9, "--- APPS ---", COLOR_WHITE);
const char *names[MAX_APPS];
for (size_t i = 0; i < s_app_count; i++) {
names[i] = s_registry[i]->name;
}
sys_gfx_draw_menu(15, names, s_app_count, s_launcher_selected);
sys_gfx_draw_menu(10, names, s_app_count, s_launcher_selected);
}
static void launcher_handle_input(input_action_t action)
@@ -130,7 +128,7 @@ void sys_app_update(uint32_t delta_ms)
void sys_app_dispatch_input(input_action_t action)
{
if (action == INPUT_ACTION_HOLD_HOME) {
if (action == INPUT_ACTION_HOLD_HOME || action == INPUT_ACTION_TRIPLE_CLICK) {
sys_app_launch_launcher();
return;
}