small fix from chaos in event handling of real wiimote
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4577 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a5cde0d45b
commit
70068a288a
|
@ -233,11 +233,8 @@ void SendEvent(SEvent& _rEvent)
|
||||||
pHidHeader->param = HID_PARAM_INPUT;
|
pHidHeader->param = HID_PARAM_INPUT;
|
||||||
|
|
||||||
// Create the buffer
|
// Create the buffer
|
||||||
memcpy(&Buffer[Offset], _rEvent.m_PayLoad, MAX_PAYLOAD);
|
memcpy(&Buffer[Offset], _rEvent.m_PayLoad, sizeof(_rEvent.m_PayLoad));
|
||||||
/* This Offset value is not exactly correct like it is for the emulated
|
Offset += sizeof(_rEvent.m_PayLoad);
|
||||||
Wiimote reports. It's often to big, but I guess that's okay. The game
|
|
||||||
will know how big the actual data is. */
|
|
||||||
Offset += MAX_PAYLOAD;
|
|
||||||
|
|
||||||
// Send it
|
// Send it
|
||||||
g_WiimoteInitialize.pWiimoteInput(m_channelID, Buffer, Offset);
|
g_WiimoteInitialize.pWiimoteInput(m_channelID, Buffer, Offset);
|
||||||
|
|
Loading…
Reference in New Issue