imGui: Fix right stick scroll

This commit is contained in:
Joel16 2022-08-01 14:48:13 -04:00
parent 663ba14b19
commit 0117ae3ac6

View File

@ -211,8 +211,8 @@ static u64 ImGui_ImplSwitch_UpdateGamepads(void) {
MAP_BUTTON(ImGuiKey_GamepadR1, HidNpadButton_R); MAP_BUTTON(ImGuiKey_GamepadR1, HidNpadButton_R);
MAP_ANALOG(ImGuiKey_GamepadLStickLeft, r_stick.x, -thumb_dead_zone, -32768); 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_GamepadLStickRight, r_stick.x, +thumb_dead_zone, +32767);
MAP_ANALOG(ImGuiKey_GamepadLStickUp, 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); MAP_ANALOG(ImGuiKey_GamepadLStickDown, r_stick.y, -thumb_dead_zone, -32767);
#undef MAP_BUTTON #undef MAP_BUTTON
#undef MAP_ANALOG #undef MAP_ANALOG