Browse Source

Add custom mode switch shortcuts

master
Krisjanis Rijnieks 8 years ago
parent
commit
63db26eb35
  1. 10
      example-custom-shortcuts/src/ofApp.cpp

10
example-custom-shortcuts/src/ofApp.cpp

@ -14,7 +14,17 @@ void ofApp::draw(){
} }
void ofApp::keyPressed(int key){ void ofApp::keyPressed(int key){
if(key == '1'){
mapper.setMode(ofxPiMapper::PRESENTATION_MODE);
}else if(key == '2'){
mapper.setMode(ofxPiMapper::MAPPING_MODE);
}else if(key == '3'){
mapper.setMode(ofxPiMapper::TEXTURE_MODE);
}else if(key == '4'){
mapper.setMode(ofxPiMapper::SOURCE_MODE);
}else{
mapper.keyPressed(key); mapper.keyPressed(key);
}
} }
void ofApp::keyReleased(int key){ void ofApp::keyReleased(int key){

Loading…
Cancel
Save