Skip to content

Commit

Permalink
Backend: Android: Remove Redundant Check (#7093)
Browse files Browse the repository at this point in the history
  • Loading branch information
benanil authored Dec 6, 2023
1 parent 0b77980 commit 9a29856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/imgui_impl_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ int32_t ImGui_ImplAndroid_HandleInputEvent(const AInputEvent* input_event)
case AKEY_EVENT_ACTION_UP:
{
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.SetKeyEventNativeData(key, event_key_code, event_scan_code);
Expand Down

0 comments on commit 9a29856

Please sign in to comment.