|
|
@ -41,24 +41,45 @@ namespace ofx { |
|
|
|
this, PresentationState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::NONE)); |
|
|
|
break; |
|
|
|
|
|
|
|
case '2': |
|
|
|
_ofxPiMapper->getCmdManager().exec( |
|
|
|
new ofx::piMapper::SetApplicationStateCmd( |
|
|
|
this, TextureMappingState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::TEXTURE_MAPPING)); |
|
|
|
break; |
|
|
|
|
|
|
|
case '3': |
|
|
|
_ofxPiMapper->getCmdManager().exec( |
|
|
|
new ofx::piMapper::SetApplicationStateCmd( |
|
|
|
this, ProjectionMappingState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::PROJECTION_MAPPING)); |
|
|
|
break; |
|
|
|
|
|
|
|
case '4': |
|
|
|
_ofxPiMapper->getCmdManager().exec( |
|
|
|
new ofx::piMapper::SetApplicationStateCmd( |
|
|
|
this, SourceSelectionState::instance(), |
|
|
|
&_ofxPiMapper->getGui(), GuiMode::SOURCE_SELECTION)); |
|
|
|
break; |
|
|
|
|
|
|
|
case 'f': |
|
|
|
ofToggleFullscreen(); |
|
|
|
break; |
|
|
|
|
|
|
|
case 'i': |
|
|
|
_ofxPiMapper->toggleInfo(); |
|
|
|
break; |
|
|
|
|
|
|
|
case 's': |
|
|
|
_ofxPiMapper->getSurfaceManager().saveXmlSettings( |
|
|
|
PIMAPPER_USER_SURFACES_XML_FILE); |
|
|
|
break; |
|
|
|
|
|
|
|
case 'z': |
|
|
|
_ofxPiMapper->getCmdManager().undo(); |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
// All the other keypresses are handled by the application state onKeyPressed
|
|
|
|
_state->onKeyPressed(this, args); |
|
|
|