AnalogController: Use device state instead of save state for mode
This commit is contained in:
parent
844c8e916f
commit
7fb5d6908f
|
@ -65,6 +65,8 @@ bool AnalogController::DoState(StateWrapper& sw, bool apply_input_state)
|
||||||
sw.DoEx(&button_state, 44, static_cast<u16>(0xFFFF));
|
sw.DoEx(&button_state, 44, static_cast<u16>(0xFFFF));
|
||||||
if (apply_input_state)
|
if (apply_input_state)
|
||||||
m_button_state = button_state;
|
m_button_state = button_state;
|
||||||
|
else
|
||||||
|
m_analog_mode = old_analog_mode;
|
||||||
|
|
||||||
sw.Do(&m_command);
|
sw.Do(&m_command);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue