From 03cf465d6c8ab058c1e6a798fd254aefd4534005 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Wed, 25 Jan 2017 19:44:33 +0100 Subject: [PATCH] Add custom shortcut for ofxPiMapper::togglePerspective() --- example-custom-shortcuts/src/ofApp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example-custom-shortcuts/src/ofApp.cpp b/example-custom-shortcuts/src/ofApp.cpp index 6d4e4be..a7c007e 100644 --- a/example-custom-shortcuts/src/ofApp.cpp +++ b/example-custom-shortcuts/src/ofApp.cpp @@ -56,6 +56,8 @@ void ofApp::keyPressed(int key){ mapper.moveLayerUp(); }else if(key == 'u'){ mapper.moveLayerDown(); + }else if(key == 'p'){ + mapper.togglePerspective(); }else if(key == 'n'){ string multilineInfoText = "Custom ofxPiMapper shortcuts\n\n"