mirror of
https://github.com/joel16/NX-Shell.git
synced 2024-11-23 11:49:46 +00:00
imGui: Fix right stick scroll
This commit is contained in:
parent
663ba14b19
commit
0117ae3ac6
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user