/examples/android/androidTouchExample/src/ofApp.h
http://github.com/openframeworks/openFrameworks · C Header · 40 lines · 29 code · 11 blank · 0 comment · 0 complexity · ae7a6f53135db38ef974652bea38d212 MD5 · raw file
- #pragma once
- #include "ofMain.h"
- #include "ofxAndroid.h"
- #include "ofxAccelerometer.h"
- #include "Ball.h"
- #define NUM_POINTS 10
- class ofApp : public ofxAndroidApp {
-
- public:
- void setup();
- void update();
- void draw();
- void keyPressed(int key);
- void keyReleased(int key);
- void windowResized(int w, int h);
- void touchDown(int x, int y, int id);
- void touchMoved(int x, int y, int id);
- void touchUp(int x, int y, int id);
- void touchDoubleTap(int x, int y, int id);
- void touchCancelled(int x, int y, int id);
- void swipe(ofxAndroidSwipeDir swipeDir, int id);
- void pause();
- void stop();
- void resume();
- void reloadTextures();
- bool backPressed();
- void okPressed();
- void cancelPressed();
-
- Ball balls[NUM_POINTS];
- };