MCPcopy Create free account
hub / github.com/cinder/Cinder / keyDown

Method keyDown

test/Video/VideoPlayerScrubTest/src/VideoPlayerScrubTestApp.cpp:164–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void VideoPlayerScrubTestApp::keyDown( KeyEvent event )
165{
166 if( event.getCode() == KeyEvent::KEY_o ) {
167 fs::path moviePath = getOpenFilePath();
168 if( ! moviePath.empty() )
169 loadMovieFile( moviePath );
170 }
171 else if( event.getCode() == KeyEvent::KEY_p ) {
172 if( mMovie ) mMovie->stop();
173 }
174 else if( event.getCode() == KeyEvent::KEY_l ) {
175 if( mMovie ) mMovie->play();
176 }
177}
178
179void VideoPlayerScrubTestApp::loadMovieFile( const fs::path &moviePath )
180{

Callers

nothing calls this directly

Calls 4

getOpenFilePathFunction · 0.85
emptyMethod · 0.45
stopMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected