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

Method keyDown

samples/ImageFileBasic/src/ImageFileBasicAppDX.cpp:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ImageFileBasicApp::keyDown( KeyEvent event )
36{
37 if( event.getChar() == 'f' ) {
38 setFullScreen( ! isFullScreen() );
39 }
40 else if( event.getCode() == app::KeyEvent::KEY_ESCAPE ) {
41 setFullScreen( false );
42 }
43 else if( event.getChar() == 'o' ) {
44 fs::path path = getOpenFilePath( "", ImageIo::getLoadExtensions() );
45 if( ! path.empty() )
46 mTexture = dx::Texture( loadImage( path.string() ) );
47 }
48}
49
50
51

Callers

nothing calls this directly

Calls 7

setFullScreenFunction · 0.85
isFullScreenFunction · 0.85
getOpenFilePathFunction · 0.85
TextureClass · 0.85
loadImageFunction · 0.85
emptyMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected