mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 15:40:02 +00:00
"Wait for the wiimote to connect"? I think that's a horrible idea.
This commit is contained in:
parent
a6461ca186
commit
da53ca8ee3
@ -1355,10 +1355,6 @@ void CFrame::ConnectWiimote(int wm_idx, bool connect)
|
|||||||
wxString msg(wxString::Format(wxT("Wiimote %i %s"), wm_idx + 1,
|
wxString msg(wxString::Format(wxT("Wiimote %i %s"), wm_idx + 1,
|
||||||
connect ? wxT("Connected") : wxT("Disconnected")));
|
connect ? wxT("Connected") : wxT("Disconnected")));
|
||||||
Core::DisplayMessage(msg.ToAscii(), 3000);
|
Core::DisplayMessage(msg.ToAscii(), 3000);
|
||||||
|
|
||||||
// Wait for the wiimote to connect
|
|
||||||
while (GetUsbPointer()->AccessWiiMote(wm_idx | 0x100)->IsConnected() != connect)
|
|
||||||
{}
|
|
||||||
Host_UpdateMainFrame();
|
Host_UpdateMainFrame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user