task LCD_ButtonPress() { int buttonPress = 0; int title = 2; while(lcdRun) { buttonPress = titles(title); title = updateTitle(buttonPress); batteryVoltagle(buttonPress); updateAuto(buttonPress); } }
void AppWindow::start(){ setRunning(true); init(); while(Running){ if(!pause){ calcDelta(); }else{ delta = 0; } while(SDL_PollEvent(&e)){ updateInput(e); } updateAuto(); render(); } }