Browse Source

Add passing key events to ofxPiMapper

master
Krisjanis Rijnieks 9 years ago
parent
commit
c4be9e65e5
  1. 8
      example/src/ofApp.cpp
  2. 3
      example/src/ofApp.h

8
example/src/ofApp.cpp

@ -31,6 +31,14 @@ void ofApp::draw(){
piMapper.draw();
}
void ofApp::keyPressed(int key){
piMapper.keyPressed(key);
}
void ofApp::keyReleased(int key){
piMapper.keyReleased(key);
}
void ofApp::mousePressed(int x, int y, int button){
piMapper.mousePressed(x, y, button);
}

3
example/src/ofApp.h

@ -13,6 +13,9 @@ class ofApp : public ofBaseApp {
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseDragged(int x, int y, int button);

Loading…
Cancel
Save