Browse Source

Backends: OSX: remove legacy clearing of io.NavInputs in ImGui_ImplOSX_UpdateGamepads(). (#7320)

John Melas 1 year ago
parent
commit
b19a4c5f2b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      backends/imgui_impl_osx.mm

+ 0 - 1
backends/imgui_impl_osx.mm

@@ -534,7 +534,6 @@ static void ImGui_ImplOSX_UpdateMouseCursor()
 static void ImGui_ImplOSX_UpdateGamepads()
 {
     ImGuiIO& io = ImGui::GetIO();
-    memset(io.NavInputs, 0, sizeof(io.NavInputs));
     if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs.
         return;