2021-03-04 10:35:44 +01: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:
2022-01-06 19:57:34 +01: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 will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set]
2023-04-11 10:01:53 +02:00
// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen.
2021-03-04 11:03:40 +01:00
// Missing features:
2021-03-04 10:35:44 +01: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 11:03:40 +01:00
// Important:
2022-01-06 19:57:34 +01:00
// - Consider using SDL or GLFW backend on Android, which will be more full-featured than this.
2021-03-04 11:03:40 +01:00
// - 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 10:35:44 +01:00
2022-01-06 19:57:34 +01:00
// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
2021-05-27 13:59:35 +02:00
// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
2023-09-11 13:47:08 +02: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
2021-03-04 10:35:44 +01:00
# pragma once
2023-07-13 11:27:52 +02:00
# include "imgui.h" // IMGUI_IMPL_API
# ifndef IMGUI_DISABLE
2021-03-04 10:35:44 +01:00
struct ANativeWindow ;
struct AInputEvent ;
2024-07-25 16:59:34 +02:00
// Follow "Getting Started" link and check examples/ folder to learn about using backends!
2021-03-04 10:35:44 +01:00
IMGUI_IMPL_API bool ImGui_ImplAndroid_Init ( ANativeWindow * window ) ;
2023-11-28 12:07:16 +01:00
IMGUI_IMPL_API int32_t ImGui_ImplAndroid_HandleInputEvent ( const AInputEvent * input_event ) ;
2021-03-04 10:35:44 +01:00
IMGUI_IMPL_API void ImGui_ImplAndroid_Shutdown ( ) ;
IMGUI_IMPL_API void ImGui_ImplAndroid_NewFrame ( ) ;
2023-07-13 11:27:52 +02:00
# endif // #ifndef IMGUI_DISABLE