fix real wiimote on windows...don't really know if it was working on other platforms...yes, sorta ugly

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3665 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-07-03 22:10:16 +00:00
parent 37332216ef
commit 15e4eed7fa
1 changed files with 7 additions and 1 deletions

View File

@ -147,7 +147,13 @@ void ReadData()
{
//INFO_LOG(CONSOLE, "Writing data to the Wiimote\n");
SEvent& rEvent = m_EventWriteQueue.front();
wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad, (int)m_EventWriteQueue.size());
wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad,
#ifdef _WIN32 // dunno if this is needed, sonic ran away when i found the bug :p
MAX_PAYLOAD
#else
(int)m_EventWriteQueue.size()
#endif
);
m_EventWriteQueue.pop();
#ifdef _WIN32