this example app is designed for an iPad in landscape mode, in the project settings Deployment Info set the following: Devices: iPad Device Orientation: disable Portrait and Upside Down
| 21 | // * Devices: iPad |
| 22 | // * Device Orientation: disable Portrait and Upside Down |
| 23 | class ofApp : public ofxiOSApp, ofxLuaListener { |
| 24 | |
| 25 | public: |
| 26 | |
| 27 | // main |
| 28 | void setup(); |
| 29 | void update(); |
| 30 | void draw(); |
| 31 | void exit(); |
| 32 | |
| 33 | // input |
| 34 | void mouseMoved(int x, int y); |
| 35 | void mouseDragged(int x, int y, int button); |
| 36 | void mousePressed(int x, int y, int button); |
| 37 | void mouseReleased(int x, int y, int button); |
| 38 | |
| 39 | void touchDown(ofTouchEventArgs &touch); |
| 40 | void touchMoved(ofTouchEventArgs &touch); |
| 41 | void touchUp(ofTouchEventArgs &touch); |
| 42 | void touchDoubleTap(ofTouchEventArgs &touch); |
| 43 | void touchCancelled(ofTouchEventArgs &touch); |
| 44 | |
| 45 | void lostFocus(); |
| 46 | void gotFocus(); |
| 47 | void gotMemoryWarning(); |
| 48 | void deviceOrientationChanged(int newOrientation); |
| 49 | |
| 50 | // ofxLua error callback |
| 51 | void errorReceived(string& msg); |
| 52 | |
| 53 | // script control |
| 54 | void reloadScript(); |
| 55 | void nextScript(); |
| 56 | void prevScript(); |
| 57 | |
| 58 | ofxLua lua; |
| 59 | vector<string> scripts; |
| 60 | int currentScript; |
| 61 | long doubleTapTimestamp; |
| 62 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected