From 7fb5d6908f0b90a1630becf2396f7a84fed1efb7 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 25 Apr 2021 21:25:22 +1000 Subject: [PATCH] AnalogController: Use device state instead of save state for mode --- src/core/analog_controller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/analog_controller.cpp b/src/core/analog_controller.cpp index 93c1702b0..74c32b959 100644 --- a/src/core/analog_controller.cpp +++ b/src/core/analog_controller.cpp @@ -65,6 +65,8 @@ bool AnalogController::DoState(StateWrapper& sw, bool apply_input_state) sw.DoEx(&button_state, 44, static_cast(0xFFFF)); if (apply_input_state) m_button_state = button_state; + else + m_analog_mode = old_analog_mode; sw.Do(&m_command);