From 23c3128a40b3ced097da0cd577aaa9a34cfa1442 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Fri, 5 Jan 2018 11:54:18 +0100 Subject: [PATCH] Fix example_shortcuts with ofx::piMapper::Vec3 --- example_shortcuts/src/ofApp.cpp | 8 ++++---- example_shortcuts/src/ofApp.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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: