Anılcan Gülkaya
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
backends/imgui_impl_android.cpp
|
@ -183,7 +183,7 @@ int32_t ImGui_ImplAndroid_HandleInputEvent(const AInputEvent* input_event) |
|
|
case AKEY_EVENT_ACTION_UP: |
|
|
case AKEY_EVENT_ACTION_UP: |
|
|
{ |
|
|
{ |
|
|
ImGuiKey key = ImGui_ImplAndroid_KeyCodeToImGuiKey(event_key_code); |
|
|
ImGuiKey key = ImGui_ImplAndroid_KeyCodeToImGuiKey(event_key_code); |
|
|
if (key != ImGuiKey_None && (event_action == AKEY_EVENT_ACTION_DOWN || event_action == AKEY_EVENT_ACTION_UP)) |
|
|
if (key != ImGuiKey_None) |
|
|
{ |
|
|
{ |
|
|
io.AddKeyEvent(key, event_action == AKEY_EVENT_ACTION_DOWN); |
|
|
io.AddKeyEvent(key, event_action == AKEY_EVENT_ACTION_DOWN); |
|
|
io.SetKeyEventNativeData(key, event_key_code, event_scan_code); |
|
|
io.SetKeyEventNativeData(key, event_key_code, event_scan_code); |
|
|