We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bc8999 + eae5b0e commit 427ffd7Copy full SHA for 427ffd7
example-soundPlayerObject/src/ofApp.cpp
@@ -151,7 +151,13 @@ void ofApp::draw(){
151
//--------------------------------------------------------------
152
void ofApp::mouseMoved(int x, int y ){}
153
154
-void ofApp::keyPressed(int key){}
+void ofApp::keyPressed(int key){
155
+ if (key == 'p') {
156
+ player.setPaused(true);
157
+ } else if (key == 'c') {
158
+ player.setPaused(false);
159
+ }
160
+}
161
162
void ofApp::keyReleased(int key){}
163
0 commit comments