AnalogController: Use device state instead of save state for mode

This commit is contained in:
Connor McLaughlin 2021-04-25 21:25:22 +10:00
parent 844c8e916f
commit 7fb5d6908f
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ bool AnalogController::DoState(StateWrapper& sw, bool apply_input_state)
sw.DoEx(&button_state, 44, static_cast<u16>(0xFFFF));
if (apply_input_state)
m_button_state = button_state;
else
m_analog_mode = old_analog_mode;
sw.Do(&m_command);