diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2022-10-15 03:35:01 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2022-10-15 03:35:01 -0500 |
| commit | 9c1a936ca641af70734ce2f85aab8dfaa10bbbe9 (patch) | |
| tree | e9e37a2abfead255cffd9c7ba964f02f0779b2dd /Source/Core | |
| parent | 3af74d82a0c32cf171a8c1a3a2aa2547b70df791 (diff) | |
WiimoteEmu: Do send a status report on connection when an extension is already attached.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp index 41513780b9..5bc19f48e8 100644 --- a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp @@ -190,12 +190,10 @@ void Wiimote::Reset() m_status = {}; - if (!want_determinism) - { - // This will suppress a status report on connect when an extension is already attached. - // TODO: I am not 100% sure if this is proper. - m_status.extension = m_extension_port.IsDeviceConnected(); - } + // A real wii remote does not normally send a status report on connection. + // But if an extension is already attached it does send one. + // Clearing this initially will simulate that on the first update cycle. + m_status.extension = 0; // Dynamics: m_swing_state = {}; |
