diff --git a/include/apps/tools/OswAppStepStats.h b/include/apps/tools/OswAppStepStats.h index 0d2f057e0..022b85773 100644 --- a/include/apps/tools/OswAppStepStats.h +++ b/include/apps/tools/OswAppStepStats.h @@ -13,6 +13,9 @@ class OswAppStepStats : public OswApp { }; virtual void setup() override; virtual void loop() override; +#ifdef OSW_EMULATOR + virtual void loopDebug() override; +#endif virtual void stop() override; ~OswAppStepStats() {}; static void drawInfoPanel(OswUI* ui, uint32_t pos, uint32_t lastWeekData, uint32_t todayData, uint32_t average, uint32_t total, const String& unit = String("")); diff --git a/src/apps/tools/OswAppStepStats.cpp b/src/apps/tools/OswAppStepStats.cpp index 6cae87b07..fff071073 100644 --- a/src/apps/tools/OswAppStepStats.cpp +++ b/src/apps/tools/OswAppStepStats.cpp @@ -85,5 +85,15 @@ void OswAppStepStats::loop() { showStickChart(); } +#ifdef OSW_EMULATOR +#include "imgui.h" + +void OswAppStepStats::loopDebug() { + ImGui::Begin("Debug: OswAppStepStats"); + ImGui::InputScalar("cursorPos", ImGuiDataType_U8, &this->cursorPos); + ImGui::End(); +} +#endif + void OswAppStepStats::stop() {} #endif \ No newline at end of file