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

Method keyDown

samples/_opengl/ObjLoader/src/ObjLoaderApp.cpp:110–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void ObjLoaderApp::keyDown( KeyEvent event )
111{
112 if( event.getChar() == 'o' ) {
113 fs::path path = getOpenFilePath();
114 if( ! path.empty() ) {
115 loadObj( loadFile( path ) );
116 }
117 }
118 else if( event.getChar() == 'f' ) {
119 frameCurrentObject();
120 }
121 else if( event.getChar() == 'w' ) {
122 writeObj();
123 }
124}
125
126void ObjLoaderApp::draw()
127{

Callers

nothing calls this directly

Calls 4

getOpenFilePathFunction · 0.85
loadFileFunction · 0.85
writeObjFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected