mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-09-26 13:47:53 +00:00
feat(screen): add resume API and swipe-up gesture for Wio L2
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
namespace platform::ui::screen
|
||||
{
|
||||
|
||||
enum class ResumeMethod : std::uint8_t
|
||||
{
|
||||
SpaceKey,
|
||||
SwipeUp,
|
||||
};
|
||||
|
||||
struct Hooks
|
||||
{
|
||||
bool (*format_time)(char* out, std::size_t out_len) = nullptr;
|
||||
@@ -33,5 +39,9 @@ void wake_for_modal();
|
||||
void record_activity();
|
||||
void disable_sleep();
|
||||
void enable_sleep();
|
||||
// Explicit user intent to dismiss the screen saver and return to
|
||||
// the UI/page that was active before sleep.
|
||||
void request_resume();
|
||||
ResumeMethod resume_method();
|
||||
|
||||
} // namespace platform::ui::screen
|
||||
|
||||
Reference in New Issue
Block a user