1
0
mirror of https://github.com/Dejvino/lilybook.git synced 2024-11-14 04:17:28 +00:00
lilybook/main/modes/ModeRunner.h

21 lines
339 B
C
Raw Normal View History

#include "AppMode.h"
#define MODE_STACK_SIZE 5
class ModeRunner
{
public:
void init();
void loop();
void startMainMode(AppMode* mode);
void startInnerMode(AppMode* mode);
void finishMode(AppMode* mode);
private:
AppMode* modeStack[MODE_STACK_SIZE];
int modeStackDepth = -1;
};
ModeRunner* getModeRunner();