Browse Source

Update custom shortcuts example with ofx::piMapper::MOde

master
Krisjanis Rijnieks 8 years ago
parent
commit
64e9e93e86
  1. 2
      example-custom-shortcuts/example-custom-shortcuts.xcodeproj/project.pbxproj
  2. 8
      example-custom-shortcuts/src/ofApp.cpp

2
example-custom-shortcuts/example-custom-shortcuts.xcodeproj/project.pbxproj

@ -172,6 +172,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
0100D93E1E33E4A0000D7FA5 /* Mode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Mode.h; sourceTree = "<group>"; };
0130C9041CE65AA600911E17 /* alphanum.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = alphanum.hpp; sourceTree = "<group>"; };
0130C9071CE65AA600911E17 /* json.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = json.hpp; sourceTree = "<group>"; };
0130C9091CE65AA600911E17 /* LICENSE.MIT */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE.MIT; sourceTree = "<group>"; };
@ -678,6 +679,7 @@
013E61CC1E2E2FAE00FACF28 /* MediaServer */,
013E61D11E2E2FAE00FACF28 /* ofxPiMapper.cpp */,
013E61D21E2E2FAE00FACF28 /* ofxPiMapper.h */,
0100D93E1E33E4A0000D7FA5 /* Mode.h */,
013E61D31E2E2FAE00FACF28 /* Sources */,
013E61DF1E2E2FAE00FACF28 /* Surfaces */,
013E61F11E2E2FAE00FACF28 /* UserInterface */,

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

@ -15,13 +15,13 @@ void ofApp::draw(){
void ofApp::keyPressed(int key){
if(key == '1'){
mapper.setMode(ofxPiMapper::PRESENTATION_MODE);
mapper.setMode(ofx::piMapper::PRESENTATION_MODE);
}else if(key == '2'){
mapper.setMode(ofxPiMapper::MAPPING_MODE);
mapper.setMode(ofx::piMapper::MAPPING_MODE);
}else if(key == '3'){
mapper.setMode(ofxPiMapper::TEXTURE_MODE);
mapper.setMode(ofx::piMapper::TEXTURE_MODE);
}else if(key == '4'){
mapper.setMode(ofxPiMapper::SOURCE_MODE);
mapper.setMode(ofx::piMapper::SOURCE_MODE);
}else if(key == 'w'){
mapper.createSurface(ofx::piMapper::QUAD_SURFACE);
}else if(key == 'e'){

Loading…
Cancel
Save