InputAndroid.h 565 B

123456789101112131415161718192021222324
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Window/Input.h>
  7. #include <AnKi/Window/KeyCode.h>
  8. #include <android_native_app_glue.h>
  9. namespace anki {
  10. /// Android input implementation
  11. class InputAndroid : public Input
  12. {
  13. public:
  14. Error initInternal();
  15. void handleAndroidEvents(android_app* app, int32_t cmd);
  16. int handleAndroidInput(android_app* app, AInputEvent* event);
  17. };
  18. } // end namespace anki