mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 11:02:28 +02:00
WiimoteDevice: Update UI when wiimote connection status changes to keep check marks in the menu bar accurate.
This commit is contained in:
parent
0e1669e1c7
commit
4bc576472c
@ -180,6 +180,9 @@ bool WiimoteDevice::LinkChannel()
|
|||||||
DEBUG_LOG(IOS_WIIMOTE, "ConnectionState CONN_LINKING -> CONN_COMPLETE");
|
DEBUG_LOG(IOS_WIIMOTE, "ConnectionState CONN_LINKING -> CONN_COMPLETE");
|
||||||
m_connection_state = ConnectionState::Complete;
|
m_connection_state = ConnectionState::Complete;
|
||||||
|
|
||||||
|
// Update wiimote connection status in the UI
|
||||||
|
Host_UpdateDisasmDialog();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,8 +221,12 @@ void WiimoteDevice::EventDisconnect()
|
|||||||
Wiimote::ControlChannel(m_connection_handle & 0xFF, 99, nullptr, 0);
|
Wiimote::ControlChannel(m_connection_handle & 0xFF, 99, nullptr, 0);
|
||||||
|
|
||||||
m_connection_state = ConnectionState::Inactive;
|
m_connection_state = ConnectionState::Inactive;
|
||||||
|
|
||||||
// Clear channel flags
|
// Clear channel flags
|
||||||
ResetChannels();
|
ResetChannels();
|
||||||
|
|
||||||
|
// Update wiimote connection status in the UI
|
||||||
|
Host_UpdateDisasmDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WiimoteDevice::EventPagingChanged(u8 page_mode) const
|
bool WiimoteDevice::EventPagingChanged(u8 page_mode) const
|
||||||
|
Loading…
Reference in New Issue
Block a user