summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/home_menu.cpp2
-rw-r--r--apps/home_menu.hpp2
-rw-r--r--apps/main_clock.cpp2
-rw-r--r--apps/main_clock.hpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/home_menu.cpp b/apps/home_menu.cpp
index 342c3ef..531a53c 100644
--- a/apps/home_menu.cpp
+++ b/apps/home_menu.cpp
@@ -45,7 +45,7 @@ namespace app_home_menu {
// Example of how button inputs could be interpreted.
// Drawing on screen should be done in the render function.
- int btnpressed(Api *app_api, uint gpio) {
+ int btnpressed(Api *app_api, uint gpio, unsigned long delta) {
switch (gpio) {
case BUTTON_SELECT:
app_switch(0, selected_app);
diff --git a/apps/home_menu.hpp b/apps/home_menu.hpp
index 366a248..78aed40 100644
--- a/apps/home_menu.hpp
+++ b/apps/home_menu.hpp
@@ -9,7 +9,7 @@
namespace app_home_menu {
int init(Api *app_api);
int render(Api *app_api);
- int btnpressed(Api *app_api, uint gpio);
+ int btnpressed(Api *app_api, uint gpio, unsigned long delta);
int bgrefresh(Api *app_api, bool in_foreground);
int destroy(Api *app_api);
}
diff --git a/apps/main_clock.cpp b/apps/main_clock.cpp
index ee97c3c..24a4dfb 100644
--- a/apps/main_clock.cpp
+++ b/apps/main_clock.cpp
@@ -66,7 +66,7 @@ namespace app_main_clock {
}
// Interpretation of button inputs
- int btnpressed(Api *app_api, uint gpio) {
+ int btnpressed(Api *app_api, uint gpio, unsigned long delta) {
if (gpio == BUTTON_MODE)
*ask_user_choice = true;
return 0;
diff --git a/apps/main_clock.hpp b/apps/main_clock.hpp
index e1d9469..72e02a4 100644
--- a/apps/main_clock.hpp
+++ b/apps/main_clock.hpp
@@ -9,7 +9,7 @@
namespace app_main_clock {
int init(Api *app_api);
int render(Api *app_api);
- int btnpressed(Api *app_api, uint gpio);
+ int btnpressed(Api *app_api, uint gpio, unsigned long delta);
int bgrefresh(Api *app_api, bool in_foreground);
int destroy(Api *app_api);
}