From ae8d1d3f9cfc5ad4b94e30a78c9173345f5fc9b6 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Tue, 31 Jan 2017 20:43:58 +0100 Subject: [PATCH] Add togglePause() shortcut to custom shortcuts example --- .../bin/data/ofxpimapper.xml | 123 +----------------- example-custom-shortcuts/src/ofApp.cpp | 2 + 2 files changed, 8 insertions(+), 117 deletions(-) diff --git a/example-custom-shortcuts/bin/data/ofxpimapper.xml b/example-custom-shortcuts/bin/data/ofxpimapper.xml index 259e4f7..961b490 100644 --- a/example-custom-shortcuts/bin/data/ofxpimapper.xml +++ b/example-custom-shortcuts/bin/data/ofxpimapper.xml @@ -2,16 +2,16 @@ - 347.000000000 - -19.000000000 + 431.000000000 + 13.000000000 - 697.000000000 - 331.000000000 + 781.000000000 + 363.000000000 - -3.000000000 - 331.000000000 + 81.000000000 + 363.000000000 @@ -33,115 +33,4 @@ image1.jpg - - - - 283.000000000 - 34.000000000 - - - 983.000000000 - 34.000000000 - - - 983.000000000 - 384.000000000 - - - 283.000000000 - 384.000000000 - - - - - 0.000000000 - 0.000000000 - - - 1.000000000 - 0.000000000 - - - 1.000000000 - 1.000000000 - - - 0.000000000 - 1.000000000 - - - - none - none - - - 1 - - - - - - 483.000000000 - 325.000000000 - - - 349.666656494 - 100.000000000 - - - 616.333312988 - 100.000000000 - - - 883.000000000 - 325.000000000 - - - 616.333312988 - 550.000000000 - - - 349.666656494 - 550.000000000 - - - 83.000000000 - 325.000000000 - - - - - 0.500000000 - 0.500000000 - - - 0.333333343 - 0.000000000 - - - 0.666666687 - 0.000000000 - - - 1.000000000 - 0.500000000 - - - 0.666666687 - 1.000000000 - - - 0.333333343 - 1.000000000 - - - 0.000000000 - 0.500000000 - - - - none - none - - diff --git a/example-custom-shortcuts/src/ofApp.cpp b/example-custom-shortcuts/src/ofApp.cpp index 9345b92..31ba1a2 100644 --- a/example-custom-shortcuts/src/ofApp.cpp +++ b/example-custom-shortcuts/src/ofApp.cpp @@ -62,6 +62,8 @@ void ofApp::keyPressed(int key){ mapper.scaleUp(); }else if(key == '-'){ mapper.scaleDown(); + }else if(key == '\\'){ + mapper.togglePause(); }else if(key == 'n'){ string multilineInfoText = "Custom ofxPiMapper shortcuts\n\n"