Browse Source

Fix example_shortcuts with ofx::piMapper::Vec3

master
Krisjanis Rijnieks 8 years ago
parent
commit
23c3128a40
  1. 8
      example_shortcuts/src/ofApp.cpp
  2. 1
      example_shortcuts/src/ofApp.h

8
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'){

1
example_shortcuts/src/ofApp.h

@ -2,6 +2,7 @@
#include "ofMain.h"
#include "ofxPiMapper.h"
#include "Vec3.h"
class ofApp : public ofBaseApp {
public:

Loading…
Cancel
Save