fix 3rd party wiimotes, patch by pholklore

This commit is contained in:
Jordan Woyak 2011-10-01 21:02:06 -05:00
parent e76bc71efe
commit 15d6c6e9fc
1 changed files with 9 additions and 1 deletions

View File

@ -159,7 +159,15 @@ void Wiimote::InterruptChannel(const u16 channel, const void* const data, const
// //((wm_report_mode*)(data + 2))->continuous = false;
//}
if (rpt.first[0] == 0xa2 && rpt.first[1] == 0x18 && rpt.second == 23)
// Convert output DATA packets to SET_REPORT packets.
// Nintendo Wiimotes work without this translation, but 3rd
// party ones don't.
if (rpt.first[0] == 0xa2)
{
rpt.first[0] = 0x52;
}
if (rpt.first[0] == 0x52 && rpt.first[1] == 0x18 && rpt.second == 23)
{
m_audio_reports.Push(rpt);
return;