summaryrefslogtreecommitdiffstats
path: root/buttons.cpp
diff options
context:
space:
mode:
authorConfuSomu2021-08-05 14:29:20 -0400
committerConfuSomu2021-08-05 14:29:20 -0400
commita9b45a41a5c7fa91f4e920eb28fe10c2af18a37a (patch)
treef89d4c75b2300d0add709abf15864ba664803d9c /buttons.cpp
parentea9511a96adac32dd7277649be7684202244c5bc (diff)
downloadpico-watch-a9b45a41a5c7fa91f4e920eb28fe10c2af18a37a.tar
pico-watch-a9b45a41a5c7fa91f4e920eb28fe10c2af18a37a.tar.gz
pico-watch-a9b45a41a5c7fa91f4e920eb28fe10c2af18a37a.zip
Rename current_app to foreground_app
This is a more descriptive name as there could be multiple apps that are currently open, or on-screen, such as a system UI or a status bar.
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 79202c8..a4eacab 100644
--- a/buttons.cpp
+++ b/buttons.cpp
@@ -16,10 +16,10 @@ void gpio_interrupt_cb(uint gpio, uint32_t events) {
if (delta_since_press > g_s.button_delay_time) {
if (app_api.m_interpret_button_press) {
- if (gpio == BUTTON_HOME && (g_s.current_app->app_get_attributes().id != 0)) // Home app
+ if (gpio == BUTTON_HOME && (g_s.foreground_app->app_get_attributes().id != 0)) // Home app
app_mgr::app_switch_request(0);
else
- app_mgr::app_btnpressed(g_s.current_app, gpio, delta_since_press);
+ app_mgr::app_btnpressed(g_s.foreground_app, gpio, delta_since_press);
}
app_api.button_last_set(gpio);