mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Fixed a bug in FillReport.cpp that caused the emulated Wiimote under Linux to case every button to be pressed(FillReport.cpp). Moving the read packet data one byte forward to match what is received under Windows. Don't know why the Wiimote doesn't work still
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2818 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e099934a85
commit
ca7683a911
@ -381,7 +381,7 @@ int IsKey(int Key)
|
||||
default: PanicAlert("There is syntax error in a function that is calling IsKey(%i)", Key); return false;
|
||||
}
|
||||
#else
|
||||
return true;
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
//////////////////////////////////////////
|
||||
|
@ -164,7 +164,10 @@ void ReadData()
|
||||
if (wiiuse_io_read(m_pWiiMote))
|
||||
{
|
||||
const byte* pBuffer = m_pWiiMote->event_buf;
|
||||
|
||||
#ifndef _WIN32
|
||||
// The Linux packets are starting out one spot before the Windows one. This should really be handled in the wiiuse library
|
||||
pBuffer++;
|
||||
#endif
|
||||
// Check if we have a channel (connection) if so save the data...
|
||||
if (m_channelID > 0)
|
||||
{
|
||||
@ -188,14 +191,6 @@ void ReadData()
|
||||
}
|
||||
m_pCriticalSection->Leave();
|
||||
}
|
||||
#ifdef _WIN32
|
||||
/* Debugging
|
||||
//if(GetAsyncKeyState('V'))
|
||||
{
|
||||
std::string Temp = ArrayToString(pBuffer, 20, 0, 30);
|
||||
INFO_LOG(CONSOLE, "Data: %s\n", Temp.c_str());
|
||||
} */
|
||||
#endif
|
||||
}
|
||||
};
|
||||
/////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user