I would check first if the key pressed is that one you are looking for, and then apply any kind of logic
void ofApp::keyPressed(int key){
if(key == OF_KEY_SPACE){
if(choice == 1) choice = 0;
}
}
I would check first if the key pressed is that one you are looking for, and then apply any kind of logic
void ofApp::keyPressed(int key){
if(key == OF_KEY_SPACE){
if(choice == 1) choice = 0;
}
}