Mutila: Mouse's Utilities for Arduino
Oft-used utilities: debouncing buttons, averaging samples, and so on.
src
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
ModeManager::modeFinished
bool modeFinished()
Definition:
ModeManager.cpp:33
Mode
Definition:
Mode.h:39
ModeManager::begin
void begin(Mode *initialMode)
Definition:
ModeManager.cpp:9
ModeManager::switchMode
void switchMode(Mode *newMode, bool force=false)
Definition:
ModeManager.cpp:22
ModeManager
Definition:
ModeManager.h:7
ModeManager::update
void update()
Definition:
ModeManager.cpp:15
Generated by
1.8.15