mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-10-22 21:22:14 +00:00
feat(screen): add resume API and swipe-up gesture for Wio L2
This commit is contained in:
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
|
||||
Reference in new issue
Block a user