Browse Source

Add custom shortcuts for surface and vertex selection

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

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

@ -40,6 +40,14 @@ void ofApp::keyPressed(int key){
mapper.moveSelection(ofVec2f(0.0f, -20.0f));
}else if(key == OF_KEY_DOWN){
mapper.moveSelection(ofVec2f(0.0f, 20.0f));
}else if(key == 'k'){
mapper.selectNextSurface();
}else if(key == 'j'){
mapper.selectPrevSurface();
}else if(key == 'l'){
mapper.selectNextVertex();
}else if(key == 'h'){
mapper.selectPrevVertex();
}else{
mapper.keyPressed(key);
}

Loading…
Cancel
Save