Added play/pause button.

This commit is contained in:
panky-codes
2021-03-11 23:41:24 +01:00
parent ce91e1a7a6
commit 70373e7345
2 changed files with 55 additions and 9 deletions

View File

@@ -20,6 +20,8 @@ namespace Pinetime::Applications::Screens {
bool Refresh() override;
bool OnButtonPushed() override;
bool OnTouchEvent(uint16_t x, uint16_t y) override;
void playPauseBtnEventHandler(lv_event_t event);
private:
const Pinetime::Controllers::DateTime& dateTime;
@@ -27,7 +29,7 @@ namespace Pinetime::Applications::Screens {
States currentState;
Events currentEvent;
TickType_t startTime;
TickType_t timeElapsed;
lv_obj_t *time, *msecTime;
TickType_t oldTimeElapsed;
lv_obj_t *time, *msecTime, *btnPlayPause, *btnStop, *txtPlayPause, *txtStop;
};
}