Fixing delayed input issues in new and old wiimote plugin for real wiimotes. Having more than 1 real wiimote connected but not connected all of them also ingame it, caused heavy delays of active wiimote input.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5827 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
snzgoo 2010-07-03 13:05:55 +00:00
parent a054cc71b6
commit 2ed8a4331e
2 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,9 @@ void SendData(u16 _channelID, const u8* _pData, u32 _Size)
/* Read and write data to the Wiimote */ /* Read and write data to the Wiimote */
void ReadData() void ReadData()
{ {
if (!m_channelID)
return;
m_pCriticalSection->Enter(); m_pCriticalSection->Enter();
// Send data to the Wiimote // Send data to the Wiimote

View File

@ -158,6 +158,9 @@ void Wiimote::InterruptChannel(const u16 channel, const void* const data, const
void Wiimote::Read() void Wiimote::Read()
{ {
if (!m_channel)
return;
if (wiiuse_io_read(m_wiimote)) if (wiiuse_io_read(m_wiimote))
{ {
// a data report, save it // a data report, save it