FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backend: Android: Remove Redundant Check (#7093) · codeage/imgui@9a29856 · GitHub

Repository navigation

Commit 9a29856

Browse files
authored
Backend: Android: Remove Redundant Check (ocornut#7093)
1 parent 0b77980 commit 9a29856

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎backends/imgui_impl_android.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ int32_t ImGui_ImplAndroid_HandleInputEvent(const AInputEvent* input_event)
183183
case AKEY_EVENT_ACTION_UP:
184184
{
185185
ImGuiKey key = ImGui_ImplAndroid_KeyCodeToImGuiKey(event_key_code);
186-
if (key != ImGuiKey_None && (event_action == AKEY_EVENT_ACTION_DOWN || event_action == AKEY_EVENT_ACTION_UP))
186+
if (key != ImGuiKey_None)
187187
{
188188
io.AddKeyEvent(key, event_action == AKEY_EVENT_ACTION_DOWN);
189189
io.SetKeyEventNativeData(key, event_key_code, event_scan_code);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL