From c4be9e65e5a4f58a7947f008b89b5053cddc50df Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Tue, 10 Jan 2017 19:26:51 +0100 Subject: [PATCH] Add passing key events to ofxPiMapper --- example/src/ofApp.cpp | 8 ++++++++ example/src/ofApp.h | 3 +++ 2 files changed, 11 insertions(+) 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);