Browse Source

Add select next vertex or tex coord depending on mode

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

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

@ -49,9 +49,17 @@ void ofApp::keyPressed(int key){
}else if(key == 'd'){ }else if(key == 'd'){
mapper.duplicateSurface(); mapper.duplicateSurface();
}else if(key == 'l'){ }else if(key == 'l'){
if(mapper.getMode() == ofx::piMapper::Mode::MAPPING_MODE){
mapper.selectNextVertex(); mapper.selectNextVertex();
}else if(mapper.getMode() == ofx::piMapper::Mode::TEXTURE_MODE){
mapper.selectNextTexCoord();
}
}else if(key == 'h'){ }else if(key == 'h'){
if(mapper.getMode() == ofx::piMapper::Mode::MAPPING_MODE){
mapper.selectPrevVertex(); mapper.selectPrevVertex();
}else if(mapper.getMode() == ofx::piMapper::Mode::TEXTURE_MODE){
mapper.selectPrevTexCoord();
}
}else if(key == 'i'){ }else if(key == 'i'){
mapper.moveLayerUp(); mapper.moveLayerUp();
}else if(key == 'u'){ }else if(key == 'u'){

Loading…
Cancel
Save