Attempt to fix real wiimote delay issues experienced by some. (Issue 3428)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6324 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak 2010-10-31 19:22:31 +00:00
parent 765d1823fb
commit 2f2a76b28a
1 changed files with 12 additions and 12 deletions

View File

@ -159,19 +159,19 @@ void Wiimote::InterruptChannel(const u16 channel, const void* const data, const
// some hax, since we just send the last data report to Dolphin on each Update() call
// , make the wiimote only send updated data reports when data changes
// == less bt traffic, eliminates some unneeded packets
if (WM_REPORT_MODE == ((u8*)data)[1])
{
// also delete the last data report
if (m_last_data_report)
{
delete[] m_last_data_report;
m_last_data_report = NULL;
}
//if (WM_REPORT_MODE == ((u8*)data)[1])
//{
// // also delete the last data report
// if (m_last_data_report)
// {
// delete[] m_last_data_report;
// m_last_data_report = NULL;
// }
// nice var names :p, this seems to be this one
((wm_report_mode*)(rpt.first + 2))->all_the_time = false;
//((wm_report_mode*)(data + 2))->continuous = false;
}
// // nice var names :p, this seems to be this one
// ((wm_report_mode*)(rpt.first + 2))->all_the_time = false;
// //((wm_report_mode*)(data + 2))->continuous = false;
//}
m_write_reports.Push(rpt);
}