Skip to content
Permalink
Browse files

WiimoteDevice: Update UI when wiimote connection status changes to ke…

…ep check marks in the menu bar accurate.
  • Loading branch information...
jordan-woyak committed Jan 29, 2019
1 parent 0e1669e commit 4bc576472ccb51028a930b43fb6071b7d189dc6e
Showing with 7 additions and 0 deletions.
  1. +7 −0 Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp
@@ -180,6 +180,9 @@ bool WiimoteDevice::LinkChannel()
DEBUG_LOG(IOS_WIIMOTE, "ConnectionState CONN_LINKING -> CONN_COMPLETE");
m_connection_state = ConnectionState::Complete;

// Update wiimote connection status in the UI
Host_UpdateDisasmDialog();

return false;
}

@@ -218,8 +221,12 @@ void WiimoteDevice::EventDisconnect()
Wiimote::ControlChannel(m_connection_handle & 0xFF, 99, nullptr, 0);

m_connection_state = ConnectionState::Inactive;

// Clear channel flags
ResetChannels();

// Update wiimote connection status in the UI
Host_UpdateDisasmDialog();
}

bool WiimoteDevice::EventPagingChanged(u8 page_mode) const

0 comments on commit 4bc5764

Please sign in to comment.
You can’t perform that action at this time.