btdrv-mitm: apply motion fix to newly supported controllers

This commit is contained in:
ndeadly 2020-09-07 11:08:28 +02:00
parent e4d8f55549
commit 8c5ca6dac5
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ namespace ams::controller {
switch_report->id = 0x30; switch_report->id = 0x30;
switch_report->input0x30.conn_info = 0x0; switch_report->input0x30.conn_info = 0x0;
switch_report->input0x30.battery = m_battery | m_charging; switch_report->input0x30.battery = m_battery | m_charging;
std::memset(switch_report->input0x30.motion, 0, sizeof(switch_report->input0x30.motion));
switch_report->input0x30.timer = os::ConvertToTimeSpan(os::GetSystemTick()).GetMilliSeconds() & 0xff; switch_report->input0x30.timer = os::ConvertToTimeSpan(os::GetSystemTick()).GetMilliSeconds() & 0xff;
} }

View file

@ -51,6 +51,7 @@ namespace ams::controller {
switch_report->id = 0x30; switch_report->id = 0x30;
switch_report->input0x30.conn_info = 0x0; switch_report->input0x30.conn_info = 0x0;
switch_report->input0x30.battery = m_battery | m_charging; switch_report->input0x30.battery = m_battery | m_charging;
std::memset(switch_report->input0x30.motion, 0, sizeof(switch_report->input0x30.motion));
switch_report->input0x30.timer = os::ConvertToTimeSpan(os::GetSystemTick()).GetMilliSeconds() & 0xff; switch_report->input0x30.timer = os::ConvertToTimeSpan(os::GetSystemTick()).GetMilliSeconds() & 0xff;
} }