OLD | NEW |
(Empty) | |
| 1 #ifndef INPUTSERVICE_H |
| 2 #define INPUTSERVICE_H |
| 3 |
| 4 #include <android_native_app_glue.h> |
| 5 #include "jni/input_handler.h" |
| 6 #include "jni/types.h" |
| 7 #include "jni/vm_glue.h" |
| 8 |
| 9 class InputService : public InputHandler { |
| 10 public: |
| 11 InputService(android_app* application, |
| 12 VMGlue* vm_glue, |
| 13 const int32_t& width, |
| 14 const int32_t& height); |
| 15 |
| 16 public: |
| 17 int32_t Start(); |
| 18 bool OnTouchEvent(AInputEvent* event); |
| 19 bool OnKeyEvent(AInputEvent* event); |
| 20 |
| 21 private: |
| 22 android_app* application_; |
| 23 VMGlue* vm_glue_; |
| 24 const int32_t& width_, &height_; |
| 25 }; |
| 26 |
| 27 #endif |
| 28 |
OLD | NEW |