2
0

InputAndroid.h 562 B

12345678910111213141516171819202122232425
  1. // Copyright (C) 2009-2021, 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/Input.h>
  7. #include <AnKi/Input/KeyCode.h>
  8. #include <android_native_app_glue.h>
  9. namespace anki
  10. {
  11. /// Android input implementation
  12. class InputAndroid : public Input
  13. {
  14. public:
  15. ANKI_USE_RESULT Error init();
  16. void handleAndroidEvents(android_app* app, int32_t cmd);
  17. int handleAndroidInput(android_app* app, AInputEvent* event);
  18. };
  19. } // end namespace anki