Browse Source

Rename piMapper to mapper

master
Krisjanis Rijnieks 8 years ago
parent
commit
6a86eeb550
  1. 16
      example-custom-shortcuts/src/ofApp.cpp
  2. 2
      example-custom-shortcuts/src/ofApp.h

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

@ -2,33 +2,33 @@
void ofApp::setup(){ void ofApp::setup(){
ofBackground(0); ofBackground(0);
piMapper.setup(); mapper.setup();
} }
void ofApp::update(){ void ofApp::update(){
piMapper.update(); mapper.update();
} }
void ofApp::draw(){ void ofApp::draw(){
piMapper.draw(); mapper.draw();
} }
void ofApp::keyPressed(int key){ void ofApp::keyPressed(int key){
piMapper.keyPressed(key); mapper.keyPressed(key);
} }
void ofApp::keyReleased(int key){ void ofApp::keyReleased(int key){
piMapper.keyReleased(key); mapper.keyReleased(key);
} }
void ofApp::mousePressed(int x, int y, int button){ void ofApp::mousePressed(int x, int y, int button){
piMapper.mousePressed(x, y, button); mapper.mousePressed(x, y, button);
} }
void ofApp::mouseReleased(int x, int y, int button){ void ofApp::mouseReleased(int x, int y, int button){
piMapper.mouseReleased(x, y, button); mapper.mouseReleased(x, y, button);
} }
void ofApp::mouseDragged(int x, int y, int button){ void ofApp::mouseDragged(int x, int y, int button){
piMapper.mouseDragged(x, y, button); mapper.mouseDragged(x, y, button);
} }

2
example-custom-shortcuts/src/ofApp.h

@ -16,5 +16,5 @@ class ofApp : public ofBaseApp {
void mouseReleased(int x, int y, int button); void mouseReleased(int x, int y, int button);
void mouseDragged(int x, int y, int button); void mouseDragged(int x, int y, int button);
ofxPiMapper piMapper; ofxPiMapper mapper;
}; };

Loading…
Cancel
Save