Merge pull request #11168 from jordan-woyak/extension-status-report

WiimoteEmu: Minor emulated Wii Remote behavior fix.
This commit is contained in:
Admiral H. Curtiss 2022-10-15 13:39:04 +02:00 committed by GitHub
commit 91ba359911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -190,12 +190,10 @@ void Wiimote::Reset()
m_status = {}; m_status = {};
if (!want_determinism) // A real wii remote does not normally send a status report on connection.
{ // But if an extension is already attached it does send one.
// This will suppress a status report on connect when an extension is already attached. // Clearing this initially will simulate that on the first update cycle.
// TODO: I am not 100% sure if this is proper. m_status.extension = 0;
m_status.extension = m_extension_port.IsDeviceConnected();
}
// Dynamics: // Dynamics:
m_swing_state = {}; m_swing_state = {};