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