Browse Source

Add custom mode switch shortcuts

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

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

@ -14,7 +14,17 @@ void ofApp::draw(){
}
void ofApp::keyPressed(int key){
mapper.keyPressed(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);
}
}
void ofApp::keyReleased(int key){

Loading…
Cancel
Save