From e3eaf5f29ef9645f8ef9d051582ceb9760fb91ea Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 15 Sep 2021 21:28:01 +0200 Subject: [PATCH] Qt: Reset stick positions on pad handler change Fixes weird stick positions when pads are disconnected or not sticks are not supported. --- rpcs3/rpcs3qt/pad_settings_dialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/rpcs3qt/pad_settings_dialog.cpp b/rpcs3/rpcs3qt/pad_settings_dialog.cpp index 5f4fac8d93..fbb64d5891 100644 --- a/rpcs3/rpcs3qt/pad_settings_dialog.cpp +++ b/rpcs3/rpcs3qt/pad_settings_dialog.cpp @@ -1209,6 +1209,12 @@ void pad_settings_dialog::ChangeHandler() m_min_force = m_handler->vibration_min; m_max_force = m_handler->vibration_max; + // Reset parameters + m_lx = 0; + m_ly = 0; + m_rx = 0; + m_ry = 0; + // Enable Vibration Checkboxes m_enable_rumble = m_handler->has_rumble();