MCPcopy Create free account
hub / github.com/danomatika/ofxLua / keyPressed

Method keyPressed

luaTests/src/ofApp.cpp:43–51  ·  view source on GitHub ↗

--------------------------------------------------------------

Source from the content-addressed store, hash-verified

41
42//--------------------------------------------------------------
43void ofApp::keyPressed(int key) {
44 if(key == 'r') {
45 lua.scriptExit();
46 lua.init(true); // stop on error
47 loadScript();
48 return;
49 }
50 lua.scriptKeyPressed(key);
51}
52
53//--------------------------------------------------------------
54void ofApp::mouseMoved(int x, int y) {

Callers

nothing calls this directly

Calls 3

scriptExitMethod · 0.80
initMethod · 0.80
scriptKeyPressedMethod · 0.80

Tested by

no test coverage detected