diff --git a/example_shortcuts/src/ofApp.cpp b/example_shortcuts/src/ofApp.cpp index c696003..68b09ab 100644 --- a/example_shortcuts/src/ofApp.cpp +++ b/example_shortcuts/src/ofApp.cpp @@ -33,13 +33,13 @@ void ofApp::keyPressed(int key){ }else if(key == OF_KEY_BACKSPACE){ mapper.eraseSurface(mapper.getNumSurfaces() - 1); }else if(key == OF_KEY_LEFT){ - mapper.moveSelection(ofVec2f(-20.0f, 0.0f)); + mapper.moveSelection(ofx::piMapper::Vec3(-20.0f, 0.0f, 0.0f)); }else if(key == OF_KEY_RIGHT){ - mapper.moveSelection(ofVec2f(20.0f, 0.0f)); + mapper.moveSelection(ofx::piMapper::Vec3(20.0f, 0.0f, 0.0f)); }else if(key == OF_KEY_UP){ - mapper.moveSelection(ofVec2f(0.0f, -20.0f)); + mapper.moveSelection(ofx::piMapper::Vec3(0.0f, -20.0f, 0.0f)); }else if(key == OF_KEY_DOWN){ - mapper.moveSelection(ofVec2f(0.0f, 20.0f)); + mapper.moveSelection(ofx::piMapper::Vec3(0.0f, 20.0f, 0.0f)); }else if(key == 'k'){ mapper.selectNextSurface(); }else if(key == 'j'){ diff --git a/example_shortcuts/src/ofApp.h b/example_shortcuts/src/ofApp.h index be34c76..63be198 100644 --- a/example_shortcuts/src/ofApp.h +++ b/example_shortcuts/src/ofApp.h @@ -2,6 +2,7 @@ #include "ofMain.h" #include "ofxPiMapper.h" +#include "Vec3.h" class ofApp : public ofBaseApp { public: