diff options
Diffstat (limited to 'base_app.hpp')
-rw-r--r-- | base_app.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/base_app.hpp b/base_app.hpp new file mode 100644 index 0000000..0950a01 --- /dev/null +++ b/base_app.hpp @@ -0,0 +1,10 @@ +#pragma once + +// Base app +class BaseApp { + public: + uint app_id = 0; // CHECK: This has to be overwritten by derived classes + virtual int render(Api *app_api) = 0; // Has to be implemented + virtual int btnpressed(Api *app_api, uint gpio, unsigned long delta) {}; + virtual int bgrefresh(Api *app_api, bool in_foreground) {}; +}; |