| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef EMBEDDERS_ANDROID_INPUT_HANDLER_H_ |
| 6 #define EMBEDDERS_ANDROID_INPUT_HANDLER_H_ |
| 7 |
| 8 #include <android/input.h> |
| 9 |
| 10 class InputHandler { |
| 11 public: |
| 12 virtual int32_t Start() { return 0; } |
| 13 virtual bool OnTouchEvent(AInputEvent* event) = 0; |
| 14 virtual bool OnKeyEvent(AInputEvent* event) = 0; |
| 15 virtual ~InputHandler() {} |
| 16 }; |
| 17 |
| 18 #endif // EMBEDDERS_ANDROID_INPUT_HANDLER_H_ |
| OLD | NEW |