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