From 0117ae3ac6319bb9ba923c31db495135504ecc20 Mon Sep 17 00:00:00 2001 From: Joel16 Date: Mon, 1 Aug 2022 14:48:13 -0400 Subject: [PATCH] imGui: Fix right stick scroll --- source/imgui_impl_switch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/imgui_impl_switch.cpp b/source/imgui_impl_switch.cpp index 44cbf1e..cc9c361 100644 --- a/source/imgui_impl_switch.cpp +++ b/source/imgui_impl_switch.cpp @@ -211,8 +211,8 @@ static u64 ImGui_ImplSwitch_UpdateGamepads(void) { MAP_BUTTON(ImGuiKey_GamepadR1, HidNpadButton_R); MAP_ANALOG(ImGuiKey_GamepadLStickLeft, r_stick.x, -thumb_dead_zone, -32768); MAP_ANALOG(ImGuiKey_GamepadLStickRight, r_stick.x, +thumb_dead_zone, +32767); - MAP_ANALOG(ImGuiKey_GamepadLStickUp, r_stick.y, -thumb_dead_zone, -32767); - MAP_ANALOG(ImGuiKey_GamepadLStickDown, r_stick.y, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadLStickUp, r_stick.y, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadLStickDown, r_stick.y, -thumb_dead_zone, -32767); #undef MAP_BUTTON #undef MAP_ANALOG