void CaptureApp::keyDown( KeyEvent event ) { #if defined( CINDER_MAC ) if( event.getChar() == 'f' ) setFullScreen( ! isFullScreen() ); else if( event.getChar() == ' ' ) ( mCapture && mCapture.isCapturing() ) ? mCapture.stop() : mCapture.start(); #endif }
void PhotoBoothApp::quit(){ if(mCapture.isCapturing()){ mCapture.stop(); } }