diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 19212ca..f257cef 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -144,6 +144,7 @@ void Watchy::handleButtonPress() { } else if (guiState == FW_UPDATE_STATE) { showMenu(menuIndex, false); // exit to menu if already in app } else if (guiState == WATCHFACE_STATE) { + button1(); return; } } @@ -156,6 +157,7 @@ void Watchy::handleButtonPress() { } showMenu(menuIndex, true); } else if (guiState == WATCHFACE_STATE) { + button2(); return; } } @@ -168,6 +170,7 @@ void Watchy::handleButtonPress() { } showMenu(menuIndex, true); } else if (guiState == WATCHFACE_STATE) { + button3(); return; } } @@ -625,6 +628,17 @@ void Watchy::drawWatchFace() { display.println(currentTime.Minute); } +void Watchy::button1() +{ +} +void Watchy::button2() +{ +} +void Watchy::button3() +{ +} + + weatherData Watchy::getWeatherData() { return getWeatherData(settings.cityID, settings.weatherUnit, settings.weatherLang, settings.weatherURL, diff --git a/src/Watchy.h b/src/Watchy.h index 0e25175..fe3130e 100644 --- a/src/Watchy.h +++ b/src/Watchy.h @@ -77,6 +77,9 @@ public: void showWatchFace(bool partialRefresh); virtual void drawWatchFace(); // override this method for different watch // faces + virtual void button1(); // override these methods to handle different non-menu button presses + virtual void button2(); + virtual void button3(); private: void _bmaConfig();