|
|
@ -36,28 +36,28 @@ void Application::onKeyPressed(ofKeyEventArgs & args){ |
|
|
|
|
|
|
|
switch(args.key){ |
|
|
|
case '1': |
|
|
|
_ofxPiMapper->getCmdManager().exec( |
|
|
|
_ofxPiMapper->getCmdManager()->exec( |
|
|
|
new ofx::piMapper::SetApplicationStateCmd( |
|
|
|
this, PresentationState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::NONE)); |
|
|
|
break; |
|
|
|
|
|
|
|
case '2': |
|
|
|
_ofxPiMapper->getCmdManager().exec( |
|
|
|
_ofxPiMapper->getCmdManager()->exec( |
|
|
|
new ofx::piMapper::SetApplicationStateCmd( |
|
|
|
this, TextureMappingState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::TEXTURE_MAPPING)); |
|
|
|
break; |
|
|
|
|
|
|
|
case '3': |
|
|
|
_ofxPiMapper->getCmdManager().exec( |
|
|
|
_ofxPiMapper->getCmdManager()->exec( |
|
|
|
new ofx::piMapper::SetApplicationStateCmd( |
|
|
|
this, ProjectionMappingState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::PROJECTION_MAPPING)); |
|
|
|
break; |
|
|
|
|
|
|
|
case '4': |
|
|
|
_ofxPiMapper->getCmdManager().exec( |
|
|
|
_ofxPiMapper->getCmdManager()->exec( |
|
|
|
new ofx::piMapper::SetApplicationStateCmd( |
|
|
|
this, SourceSelectionState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::SOURCE_SELECTION)); |
|
|
@ -77,7 +77,7 @@ void Application::onKeyPressed(ofKeyEventArgs & args){ |
|
|
|
break; |
|
|
|
|
|
|
|
case 'z': |
|
|
|
_ofxPiMapper->getCmdManager().undo(); |
|
|
|
_ofxPiMapper->getCmdManager()->undo(); |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|