Skip to content

Commit

Permalink
Qt: Reset stick positions on pad handler change
Browse files Browse the repository at this point in the history
Fixes weird stick positions when pads are disconnected or not sticks are not supported.
  • Loading branch information
Megamouse committed Sep 15, 2021
1 parent e56609d commit e3eaf5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpcs3/rpcs3qt/pad_settings_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e3eaf5f

Please sign in to comment.