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:
parent
a054cc71b6
commit
2ed8a4331e
|
@ -136,6 +136,9 @@ void SendData(u16 _channelID, const u8* _pData, u32 _Size)
|
|||
/* Read and write data to the Wiimote */
|
||||
void ReadData()
|
||||
{
|
||||
if (!m_channelID)
|
||||
return;
|
||||
|
||||
m_pCriticalSection->Enter();
|
||||
|
||||
// Send data to the Wiimote
|
||||
|
|
|
@ -158,6 +158,9 @@ void Wiimote::InterruptChannel(const u16 channel, const void* const data, const
|
|||
|
||||
void Wiimote::Read()
|
||||
{
|
||||
if (!m_channel)
|
||||
return;
|
||||
|
||||
if (wiiuse_io_read(m_wiimote))
|
||||
{
|
||||
// a data report, save it
|
||||
|
|
Loading…
Reference in New Issue