2021-03-04 09:35:44 +00:00
// dear imgui: Platform Binding for Android native app
// This needs to be used along with the OpenGL 3 Renderer (imgui_impl_opengl3)
// Implemented features:
// [X] Platform: Keyboard arrays indexed using AKEYCODE_* codes, e.g. ImGui::IsKeyPressed(AKEYCODE_SPACE).
2021-03-04 10:03:40 +00:00
// Missing features:
2021-03-04 09:35:44 +00:00
// [ ] Platform: Clipboard support.
// [ ] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'.
// [ ] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: Check if this is even possible with Android.
2021-03-04 10:03:40 +00:00
// Important:
// - FIXME: On-screen keyboard currently needs to be enabled by the application (see examples/ and issue #3446)
// - FIXME: Unicode character inputs needs to be passed by Dear ImGui by the application (see examples/ and issue #3446)
2021-03-04 09:35:44 +00:00
2021-05-27 11:59:35 +00:00
// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
// Read online: https://github.com/ocornut/imgui/tree/master/docs
2021-03-04 09:35:44 +00:00
# pragma once
struct ANativeWindow ;
struct AInputEvent ;
IMGUI_IMPL_API bool ImGui_ImplAndroid_Init ( ANativeWindow * window ) ;
2021-03-04 10:03:40 +00:00
IMGUI_IMPL_API int32_t ImGui_ImplAndroid_HandleInputEvent ( AInputEvent * input_event ) ;
2021-03-04 09:35:44 +00:00
IMGUI_IMPL_API void ImGui_ImplAndroid_Shutdown ( ) ;
IMGUI_IMPL_API void ImGui_ImplAndroid_NewFrame ( ) ;