--------------------------------------------------------------
| 66 | |
| 67 | //-------------------------------------------------------------- |
| 68 | void ofApp::keyPressed(int key) { |
| 69 | |
| 70 | switch(key) { |
| 71 | |
| 72 | case 'r': |
| 73 | reloadScript(); |
| 74 | break; |
| 75 | |
| 76 | case OF_KEY_LEFT: |
| 77 | prevScript(); |
| 78 | break; |
| 79 | |
| 80 | case OF_KEY_RIGHT: |
| 81 | nextScript(); |
| 82 | break; |
| 83 | |
| 84 | case ' ': |
| 85 | lua.doString("print(\"this is a lua string saying you hit the space bar!\")"); |
| 86 | break; |
| 87 | } |
| 88 | |
| 89 | lua.scriptKeyPressed(key); |
| 90 | } |
| 91 | |
| 92 | //-------------------------------------------------------------- |
| 93 | void ofApp::mouseMoved(int x, int y) { |
nothing calls this directly
no test coverage detected