mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-22 20:33:07 +00:00
btdrv-mitm: apply motion fix to newly supported controllers
This commit is contained in:
parent
e4d8f55549
commit
8c5ca6dac5
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ namespace ams::controller {
|
|||
switch_report->id = 0x30;
|
||||
switch_report->input0x30.conn_info = 0x0;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ namespace ams::controller {
|
|||
switch_report->id = 0x30;
|
||||
switch_report->input0x30.conn_info = 0x0;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue