diff --git a/StateHandler/inc/StateHandler.h b/StateHandler/inc/StateHandler.h index 7a847a3..1c73f9d 100644 --- a/StateHandler/inc/StateHandler.h +++ b/StateHandler/inc/StateHandler.h @@ -124,6 +124,12 @@ private: * @param event */ void stateAuto (const Event &event); + + /** Hnadle button presses + * + * @param button current button + */ + void handleControlButtons (uint8_t button); }; #endif /* STATE_HANDLER_H_ */ diff --git a/StateHandler/src/StateHandler.cpp b/StateHandler/src/StateHandler.cpp index c464a8f..d2202d8 100644 --- a/StateHandler/src/StateHandler.cpp +++ b/StateHandler/src/StateHandler.cpp @@ -130,4 +130,23 @@ stateAuto (const Event &event) case Event::eTick: break; } +} + +void +handleControlButtons (uint8_t button) +{ + switch (button) + { + case BUTTON_CONTROL_DOWN: + /* code */ + break; + case BUTTON_CONTROL_UP: + /* code */ + break; + case BUTTON_CONTROL_TOG_MODE: + /* code */ + break; + default: + break; + } } \ No newline at end of file