Mutila: Mouse's Utilities for Arduino
Oft-used utilities: debouncing buttons, averaging samples, and so on.
ModeManager.h
1 #pragma once
2 
3 #include "Mode.h"
4 
7 class ModeManager {
8 public:
9  ModeManager();
10 
17  void begin(Mode* initialMode);
18 
23  void update();
24 
33  void switchMode(Mode* newMode, bool force=false);
34 
39  bool modeFinished();
40 
41  /* A pointer to the current mode object.
42  */
43  Mode* currentMode;
44 
45 };
46 
bool modeFinished()
Definition: ModeManager.cpp:33
Definition: Mode.h:39
void begin(Mode *initialMode)
Definition: ModeManager.cpp:9
void switchMode(Mode *newMode, bool force=false)
Definition: ModeManager.cpp:22
void update()
Definition: ModeManager.cpp:15