diff --git a/example/src/ofApp.cpp b/example/src/ofApp.cpp index d26f908..f4a0027 100644 --- a/example/src/ofApp.cpp +++ b/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); } diff --git a/example/src/ofApp.h b/example/src/ofApp.h index ab1afd8..8ca4b64 100644 --- a/example/src/ofApp.h +++ b/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);