feat(screen): add resume API and swipe-up gesture for Wio L2

This commit is contained in:
Trail Mate Dev committed 2026-09-18 14:52:57 +08:00
1 parent 194c088823
commit 63d04fbfa2
7 files changed
+190 -15

No files matched your search

@@ -90,7 +90,7 @@ void handle_input()
void handle_confirm_input()
{
s_machine.dispatch(platform::ui::screen_power::Event::ConfirmInput, now_ms());
request_resume();
}
void handle_input_release()
@@ -118,4 +118,14 @@ void enable_sleep()
s_machine.dispatch(platform::ui::screen_power::Event::EnableSleep, now_ms());
}
void request_resume()
{
s_machine.dispatch(platform::ui::screen_power::Event::ConfirmInput, now_ms());
}
ResumeMethod resume_method()
{
return ResumeMethod::SpaceKey;
}
} // namespace platform::ui::screen