OLD | NEW |
(Empty) | |
| 1 #ifndef INPUTSERVICE_H |
| 2 #define INPUTSERVICE_H |
| 3 |
| 4 #include <android_native_app_glue.h> |
| 5 #include "types.h" |
| 6 #include "vm_glue.h" |
| 7 #include "input_handler.h" |
| 8 |
| 9 class InputService : public InputHandler { |
| 10 public: |
| 11 InputService(android_app* pApplication, |
| 12 VMGlue* pVmGlue, |
| 13 const int32_t& pWidth, |
| 14 const int32_t& pHeight); |
| 15 public: |
| 16 int32_t start() ; |
| 17 bool onTouchEvent(AInputEvent* pEvent); |
| 18 bool onKeyEvent(AInputEvent* pEvent); |
| 19 private: |
| 20 android_app* mApplication; |
| 21 VMGlue* mVmGlue; |
| 22 const int32_t& mWidth, &mHeight; |
| 23 }; |
| 24 |
| 25 #endif |
OLD | NEW |