summaryrefslogtreecommitdiffstats
path: root/buttons.cpp
diff options
context:
space:
mode:
authorConfuSomu2021-08-05 14:21:37 -0400
committerConfuSomu2021-08-05 14:21:37 -0400
commitea9511a96adac32dd7277649be7684202244c5bc (patch)
treed00962942e5b44ad0cc3da117bbe54f789a6e46d /buttons.cpp
parentee583a19695b1f2b097276552cf6bb0c6adaaf6b (diff)
downloadpico-watch-ea9511a96adac32dd7277649be7684202244c5bc.tar
pico-watch-ea9511a96adac32dd7277649be7684202244c5bc.tar.gz
pico-watch-ea9511a96adac32dd7277649be7684202244c5bc.zip
Move app manager functions to a namespace
This helps with compartmentalisation and organisation.
Diffstat (limited to 'buttons.cpp')
-rw-r--r--buttons.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/buttons.cpp b/buttons.cpp
index df947db..79202c8 100644
--- a/buttons.cpp
+++ b/buttons.cpp
@@ -17,9 +17,9 @@ void gpio_interrupt_cb(uint gpio, uint32_t events) {
if (app_api.m_interpret_button_press) {
if (gpio == BUTTON_HOME && (g_s.current_app->app_get_attributes().id != 0)) // Home app
- app_switch_request(0);
+ app_mgr::app_switch_request(0);
else
- app_btnpressed(g_s.current_app, gpio, delta_since_press);
+ app_mgr::app_btnpressed(g_s.current_app, gpio, delta_since_press);
}
app_api.button_last_set(gpio);