예제 #1
0
void NyanApp::keyUp( KeyEvent event )
{
	if(event.getChar()==' '){
		nyan.setSpace(false);
	}
	if(event.getCode()==27){
		exit(0);
	}
}
예제 #2
0
void NyanApp::keyDown( KeyEvent event )
{
	if(event.getChar()==' '){
		nyan.setSpace(true);
	}
}