summaryrefslogtreecommitdiffstats
path: root/buttons.cpp
diff options
context:
space:
mode:
authorConfuSomu2021-06-25 21:01:57 -0400
committerConfuSomu2021-06-25 21:01:57 -0400
commit6eb39240a6213ffd78d52ee8796e8e5a9723c44f (patch)
tree31dd96639e88f0601141c1c0281a1ae306da65f1 /buttons.cpp
parenta2eac6cd3e29ea0db579cabd644a93996daaeeec (diff)
downloadpico-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.cpp3
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};