ImGui_ImplAndroid_HandleInputEvent should take const AInputEvent* #7060

Closed
opened 2023-11-25 23:01:04 +00:00 by wicstas · 0 comments
wicstas commented 2023-11-25 23:01:04 +00:00 (Migrated from github.com)

(Click "Preview" above ^ to turn URL into clickable links)

(you may also go to Demo>About Window, and click "Config/Build Information" to obtain a bunch of detailed information that you can paste here)

Version/Branch of Dear ImGui:

Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_android.cpp + imgui_impl_opengl3.cpp

My Issue/Question:

As the title says. I found this because I'm not using NativeActivity, so I need to send motion event from Kotlin to c++. This requires me to use const AInputEvent* AMotionEvent_fromJava(JNIEnv* env, jobject motionEvent), so it returns const AInputEvent*. Since all code inside ImGui_ImplAndroid_HandleInputEvent only uses const AInputEvent*, the function should use const AInputEvent* too.

(Click "Preview" above ^ to turn URL into clickable links) _(you may also go to Demo>About Window, and click "Config/Build Information" to obtain a bunch of detailed information that you can paste here)_ **Version/Branch of Dear ImGui:** Branch: _master_ **Back-end/Renderer/Compiler/OS** Back-ends: imgui_impl_android.cpp + imgui_impl_opengl3.cpp **My Issue/Question:** As the title says. I found this because I'm not using NativeActivity, so I need to send motion event from Kotlin to c++. This requires me to use `const AInputEvent* AMotionEvent_fromJava(JNIEnv* env, jobject motionEvent)`, so it returns `const AInputEvent*`. Since all code inside `ImGui_ImplAndroid_HandleInputEvent` only uses `const AInputEvent*`, the function should use `const AInputEvent*` too.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#7060
No description provided.