mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Merge pull request #5791 from leoetlino/wiimote-indicator
Remove Wii Remote connection status from status bar
This commit is contained in:
@ -31,7 +31,6 @@ void Host_Message(int Id);
|
||||
void Host_NotifyMapLoaded();
|
||||
void Host_RefreshDSPDebuggerWindow();
|
||||
void Host_RequestRenderWindowSize(int width, int height);
|
||||
void Host_SetWiiMoteConnectionState(int _State);
|
||||
void Host_UpdateDisasmDialog();
|
||||
void Host_UpdateMainFrame();
|
||||
void Host_UpdateTitle(const std::string& title);
|
||||
|
@ -91,13 +91,10 @@ BluetoothEmu::BluetoothEmu(Kernel& ios, const std::string& device_name)
|
||||
m_ControllerBD.b[3] = 0x79;
|
||||
m_ControllerBD.b[4] = 0x00;
|
||||
m_ControllerBD.b[5] = 0xFF;
|
||||
|
||||
Host_SetWiiMoteConnectionState(0);
|
||||
}
|
||||
|
||||
BluetoothEmu::~BluetoothEmu()
|
||||
{
|
||||
Host_SetWiiMoteConnectionState(0);
|
||||
m_WiiMotes.clear();
|
||||
}
|
||||
|
||||
@ -355,10 +352,7 @@ void BluetoothEmu::Update()
|
||||
for (auto& wiimote : m_WiiMotes)
|
||||
{
|
||||
if (wiimote.EventPagingChanged(m_ScanEnable))
|
||||
{
|
||||
Host_SetWiiMoteConnectionState(1);
|
||||
SendEventRequestConnection(wiimote);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1203,7 +1197,6 @@ void BluetoothEmu::CommandDisconnect(const u8* input)
|
||||
DEBUG_LOG(IOS_WIIMOTE, " ConnectionHandle: 0x%04x", disconnect->con_handle);
|
||||
DEBUG_LOG(IOS_WIIMOTE, " Reason: 0x%02x", disconnect->reason);
|
||||
|
||||
Host_SetWiiMoteConnectionState(0);
|
||||
DisplayDisconnectMessage((disconnect->con_handle & 0xFF) + 1, disconnect->reason);
|
||||
|
||||
SendEventCommandStatus(HCI_CMD_DISCONNECT);
|
||||
|
@ -910,9 +910,6 @@ void WiimoteDevice::ReceiveL2capData(u16 scid, const void* _pData, u32 _Size)
|
||||
// Update Offset to the final size of the report
|
||||
Offset += _Size;
|
||||
|
||||
// Update the status bar
|
||||
Host_SetWiiMoteConnectionState(2);
|
||||
|
||||
// Send the report
|
||||
m_pHost->SendACLPacket(GetConnectionHandle(), DataFrame, Offset);
|
||||
}
|
||||
|
Reference in New Issue
Block a user