Browse Source

Make use of ofxPiMapper::toggleShift in example_pocketvj

master
Krisjanis Rijnieks 8 years ago
parent
commit
f3030c6523
  1. 19
      example_pocketvj/src/ofApp.cpp

19
example_pocketvj/src/ofApp.cpp

@ -90,15 +90,20 @@ void ofApp::keyPressed(int key){
mapper.moveSelection(ofx::piMapper::Vec3(-1.0f, 0.0f, 0.0f)); mapper.moveSelection(ofx::piMapper::Vec3(-1.0f, 0.0f, 0.0f));
}else if(key == '0'){ }else if(key == '0'){
mapper.moveSelection(ofx::piMapper::Vec3(1.0f, 0.0f, 0.0f)); mapper.moveSelection(ofx::piMapper::Vec3(1.0f, 0.0f, 0.0f));
}else if(key == '/'){
bool shiftIsDown = mapper.toggleShift();
if(shiftIsDown){
ofLogNotice("ofApp") << "Shift key is down";
}else{
ofLogNotice("ofApp") << "Shift key is up";
}
} }
// Make / toggle between shif/unshift (how to capture that with EGL window?) /* For these one has to figure out her own ways.
* rbt Reboot (Raspberry Pi only)
/* * sdn Shutdown (Raspberry Pi only)
rbt Reboot (Raspberry Pi only) * new Clear composition (remove all surfaces)
sdn Shutdown (Raspberry Pi only) * ext Exit application and return to command line
new Clear composition (remove all surfaces)
ext Exit application and return to command line
*/ */
} }

Loading…
Cancel
Save