blob: 0950a01c5cea00eeb8eec6ae37afe09c3db8dd5f (
plain)
1
2
3
4
5
6
7
8
9
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) {};
};
|