| 33 | } |
| 34 | |
| 35 | void 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 |
nothing calls this directly
no test coverage detected