summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2019-02-03 10:28:08 -0800
committerGitHub <noreply@github.com>2019-02-03 10:28:08 -0800
commit4e825beddf1f367ef9816a456c73be10b9d38002 (patch)
treeefd94dcfa1c44d78429dc62557709d9c3d073a4c /Source/Core
parente9130734af0ff86f4034fd9505ddbe8ef497a2a1 (diff)
parent4bc576472ccb51028a930b43fb6071b7d189dc6e (diff)
Merge pull request #7757 from jordan-woyak/wiimote-connection-status-checkmarks
WiimoteDevice: Update UI when wiimote connection status changes.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp
index cfce4d5959..381ac0fc64 100644
--- a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp
+++ b/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