2022-05-18 16:23:10 -04: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:
2025-08-11 16:09:28 -04:00
// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy AKEYCODE_* values are obsolete since 1.87 and not supported since 1.91.5]
2023-06-08 01:29:16 -04:00
// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen.
2025-08-11 16:50:18 -04:00
// Missing features or Issues:
2022-05-18 16:23:10 -04:00
// [ ] Platform: Clipboard support.
2025-08-11 21:40:50 -04:00
// [ ] Platform: Gamepad support.
2025-08-11 16:50:18 -04:00
// [ ] Platform: Mouse cursor shape and visibility (ImGuiBackendFlags_HasMouseCursors). Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: Check if this is even possible with Android.
2025-08-09 21:45:33 -04:00
// [ ] Platform: Multi-viewport support (multiple windows). Not meaningful on Android.
2022-05-18 16:23:10 -04:00
// Important:
// - Consider using SDL or GLFW backend on Android, which will be more full-featured than this.
// - 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)
// 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.
2025-08-09 22:26:36 -04:00
// Learn about Dear ImGui:
// - FAQ https://dearimgui.com/faq
// - Getting Started https://dearimgui.com/getting-started
// - Documentation https://dearimgui.com/docs (same as your local docs/ folder).
// - Introduction, links and more at the top of imgui.cpp
2022-05-18 16:23:10 -04:00
# pragma once
2023-08-30 01:42:51 -04:00
# include "imgui.h" // IMGUI_IMPL_API
# ifndef IMGUI_DISABLE
2022-05-18 16:23:10 -04:00
struct ANativeWindow ;
struct AInputEvent ;
2025-08-10 06:07:58 -04:00
// Follow "Getting Started" link and check examples/ folder to learn about using backends!
2022-05-18 16:23:10 -04:00
IMGUI_IMPL_API bool ImGui_ImplAndroid_Init ( ANativeWindow * window ) ;
2025-08-10 04:12:45 -04:00
IMGUI_IMPL_API int32_t ImGui_ImplAndroid_HandleInputEvent ( const AInputEvent * input_event ) ;
2022-05-18 16:23:10 -04:00
IMGUI_IMPL_API void ImGui_ImplAndroid_Shutdown ( ) ;
IMGUI_IMPL_API void ImGui_ImplAndroid_NewFrame ( ) ;
2023-08-30 01:42:51 -04:00
# endif // #ifndef IMGUI_DISABLE