Qt: Reset stick positions on pad handler change

Fixes weird stick positions when pads are disconnected or not sticks are not supported.
This commit is contained in:
Megamouse 2021-09-15 21:28:01 +02:00
parent e56609d836
commit e3eaf5f29e

View File

@ -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();