NerfStatTrak/Globals.cpp
Mark van Renswoude 2e8007d510 Support for gun armed detection
First attempt at implementing animation
2016-12-05 23:42:20 +01:00

25 lines
379 B
C++

#include "Globals.h"
#include "StateHandler.h"
SegmentDisplay* display;
Button* buttonA;
Button* buttonB;
Button* buttonArmed;
uint32_t shots = 0;
uint32_t hits = 0;
unsigned long currentTime;
AbstractStateHandler* currentState;
void setCurrentState(AbstractStateHandler* value)
{
buttonA->block();
buttonB->block();
currentState = value;
currentState->setup();
}