diff options
author | ConfuSomu | 2021-06-25 21:01:57 -0400 |
---|---|---|
committer | ConfuSomu | 2021-06-25 21:01:57 -0400 |
commit | 6eb39240a6213ffd78d52ee8796e8e5a9723c44f (patch) | |
tree | 31dd96639e88f0601141c1c0281a1ae306da65f1 /buttons.cpp | |
parent | a2eac6cd3e29ea0db579cabd644a93996daaeeec (diff) | |
download | pico-watch-6eb39240a6213ffd78d52ee8796e8e5a9723c44f.tar pico-watch-6eb39240a6213ffd78d52ee8796e8e5a9723c44f.tar.gz pico-watch-6eb39240a6213ffd78d52ee8796e8e5a9723c44f.zip |
Move functions related to app lifecycle managment
They have been moved to a new file, to provide better encapulation.
Diffstat (limited to 'buttons.cpp')
-rw-r--r-- | buttons.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/buttons.cpp b/buttons.cpp index 7aa82e8..df2beef 100644 --- a/buttons.cpp +++ b/buttons.cpp @@ -3,9 +3,8 @@ #include "buttons.hpp" #include "api.hpp" +#include "app_manager.hpp" // From pico-watch.c: -extern int app_btnpressed(int app_id, uint gpio, unsigned long delta); -extern void app_switch_request(int); extern Api app_api; //const uint BUTTON_PINS[] = {BUTTON_HOME, BUTTON_SELECT, BUTTON_MODE, BUTTON_UP, BUTTON_DOWN}; |