/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

  1. #pragma once
  2. #include "ofMain.h"
  3. #include "ofxAndroid.h"
  4. #include "ofxAccelerometer.h"
  5. #include "Ball.h"
  6. #define NUM_POINTS 10
  7. class ofApp : public ofxAndroidApp {
  8. public:
  9. void setup();
  10. void update();
  11. void draw();
  12. void keyPressed(int key);
  13. void keyReleased(int key);
  14. void windowResized(int w, int h);
  15. void touchDown(int x, int y, int id);
  16. void touchMoved(int x, int y, int id);
  17. void touchUp(int x, int y, int id);
  18. void touchDoubleTap(int x, int y, int id);
  19. void touchCancelled(int x, int y, int id);
  20. void swipe(ofxAndroidSwipeDir swipeDir, int id);
  21. void pause();
  22. void stop();
  23. void resume();
  24. void reloadTextures();
  25. bool backPressed();
  26. void okPressed();
  27. void cancelPressed();
  28. Ball balls[NUM_POINTS];
  29. };