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:
@@ -1209,6 +1209,12 @@ void pad_settings_dialog::ChangeHandler()
|
|||||||
m_min_force = m_handler->vibration_min;
|
m_min_force = m_handler->vibration_min;
|
||||||
m_max_force = m_handler->vibration_max;
|
m_max_force = m_handler->vibration_max;
|
||||||
|
|
||||||
|
// Reset parameters
|
||||||
|
m_lx = 0;
|
||||||
|
m_ly = 0;
|
||||||
|
m_rx = 0;
|
||||||
|
m_ry = 0;
|
||||||
|
|
||||||
// Enable Vibration Checkboxes
|
// Enable Vibration Checkboxes
|
||||||
m_enable_rumble = m_handler->has_rumble();
|
m_enable_rumble = m_handler->has_rumble();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user