| 123456789101112131415161718192021222324 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <AnKi/Input.h>
- #include <AnKi/Input/KeyCode.h>
- #include <android_native_app_glue.h>
- namespace anki {
- /// Android input implementation
- class InputAndroid : public Input
- {
- public:
- ANKI_USE_RESULT Error init();
- void handleAndroidEvents(android_app* app, int32_t cmd);
- int handleAndroidInput(android_app* app, AInputEvent* event);
- };
- } // end namespace anki
|