Real Wiimote build fix for linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5319 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
50a4293d85
commit
d00f5b20a1
|
@ -140,10 +140,12 @@ void ReadData()
|
||||||
//DEBUG_LOG(WIIMOTE, "Writing data to the Wiimote");
|
//DEBUG_LOG(WIIMOTE, "Writing data to the Wiimote");
|
||||||
SEvent& rEvent = m_EventWriteQueue.front();
|
SEvent& rEvent = m_EventWriteQueue.front();
|
||||||
wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad, rEvent._Size);
|
wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad, rEvent._Size);
|
||||||
|
#ifdef _WIN32
|
||||||
if (m_pWiiMote->event == WIIUSE_UNEXPECTED_DISCONNECT)
|
if (m_pWiiMote->event == WIIUSE_UNEXPECTED_DISCONNECT)
|
||||||
{
|
{
|
||||||
NOTICE_LOG(WIIMOTE, "wiiuse_io_write: unexpected disconnect. handle: %08x", m_pWiiMote->dev_handle);
|
NOTICE_LOG(WIIMOTE, "wiiuse_io_write: unexpected disconnect. handle: %08x", m_pWiiMote->dev_handle);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
m_EventWriteQueue.pop();
|
m_EventWriteQueue.pop();
|
||||||
|
|
||||||
// InterruptDebugging(false, rEvent.m_PayLoad);
|
// InterruptDebugging(false, rEvent.m_PayLoad);
|
||||||
|
@ -180,10 +182,12 @@ void ReadData()
|
||||||
m_pCriticalSection->Leave();
|
m_pCriticalSection->Leave();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef _WIN32
|
||||||
else if (m_pWiiMote->event == WIIUSE_UNEXPECTED_DISCONNECT)
|
else if (m_pWiiMote->event == WIIUSE_UNEXPECTED_DISCONNECT)
|
||||||
{
|
{
|
||||||
NOTICE_LOG(WIIMOTE, "wiiuse_io_read: unexpected disconnect. handle: %08x", m_pWiiMote->dev_handle);
|
NOTICE_LOG(WIIMOTE, "wiiuse_io_read: unexpected disconnect. handle: %08x", m_pWiiMote->dev_handle);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue