Skip to content

Commit

Permalink
no screen timeout during gameplay
Browse files Browse the repository at this point in the history
  • Loading branch information
lunokjod committed Oct 1, 2024
1 parent 876b6b9 commit 8ffed4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/LunoNoid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ void LunoNoidGameApplication::GatherButtons() {
bool LunoNoidGameApplication::Tick() {
if ( millis() < nextRefresh ) { return false; }
nextRefresh=millis()+(1000/24);
UINextTimeout = millis() + UITimeout; // disable screen timeout on this app
char buffer[255];
GatherButtons();
int16_t ballXCell=ballX/40;
Expand Down Expand Up @@ -222,5 +223,6 @@ bool LunoNoidGameApplication::Tick() {
sprintf(buffer," Remain: %d", credits );
tft->drawString(buffer, tft->width(), 0);
xSemaphoreGive(UISemaphore);

return false;
}

0 comments on commit 8ffed4d

Please sign in to comment.