From 47f12d6b666356681d740619595342fa4de9e5c3 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Tue, 24 Jan 2017 20:22:22 +0100 Subject: [PATCH] Add toggleInfo and setInfoText shortcuts --- example-custom-shortcuts/src/ofApp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example-custom-shortcuts/src/ofApp.cpp b/example-custom-shortcuts/src/ofApp.cpp index d8d84f9..951748a 100644 --- a/example-custom-shortcuts/src/ofApp.cpp +++ b/example-custom-shortcuts/src/ofApp.cpp @@ -54,6 +54,14 @@ void ofApp::keyPressed(int key){ mapper.moveLayerUp(); }else if(key == 'u'){ mapper.moveLayerDown(); + }else if(key == 'n'){ + string multilineInfoText = + "Custom ofxPiMapper shortcuts\n\n" + "Good day user.\n" + "Shortcuts have been customized.\n" + "Please make sure to provide your own documentation."; + mapper.setInfoText(multilineInfoText); + mapper.toggleInfo(); }else{ mapper.keyPressed(key); }