From b6582a471ae7c13eeecb8e39c72c87a99a59657e Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 17 Jan 2022 16:22:32 +0100 Subject: [PATCH] Backends: OSX: Fix Game Controller nav mapping to use shoulder for both focusing and tweak speed. (#4759) --- backends/imgui_impl_osx.mm | 4 ++-- docs/CHANGELOG.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backends/imgui_impl_osx.mm b/backends/imgui_impl_osx.mm index 48a50f1b..146fff1e 100644 --- a/backends/imgui_impl_osx.mm +++ b/backends/imgui_impl_osx.mm @@ -522,8 +522,8 @@ static void ImGui_ImplOSX_UpdateGamepads() MAP_BUTTON(ImGuiNavInput_DpadDown, dpad.down); MAP_BUTTON(ImGuiNavInput_FocusPrev, leftShoulder); MAP_BUTTON(ImGuiNavInput_FocusNext, rightShoulder); - MAP_BUTTON(ImGuiNavInput_TweakSlow, leftTrigger); - MAP_BUTTON(ImGuiNavInput_TweakFast, rightTrigger); + MAP_BUTTON(ImGuiNavInput_TweakSlow, leftShoulder); + MAP_BUTTON(ImGuiNavInput_TweakFast, rightShoulder); #undef MAP_BUTTON io.NavInputs[ImGuiNavInput_LStickLeft] = gp.leftThumbstick.left.value; diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index d60c8365..69f7b4fd 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -121,6 +121,7 @@ Other Changes: - Backends: Metal: Ignore ImDrawCmd where ElemCount == 0, which are normally not emitted by the library but can theorically be created by user code manipulating a ImDrawList. (#4857) - Backends: OSX: Added basic Platform IME support. (#3108, #2598) [@liuliu] +- Backends: OSX: Fix Game Controller nav mapping to use shoulder for both focusing and tweak speed. (#4759) - Backends: WebGPU: Fixed incorrect size parameters in wgpuRenderPassEncoderSetIndexBuffer() and wgpuRenderPassEncoderSetVertexBuffer() calls. (#4891) [@FeepsDev]