mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-22 20:33:07 +00:00
btdrv-mitm: set proper battery info when makeing fake subcmd response
This commit is contained in:
parent
78bd785fc0
commit
5ef5a2f143
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ namespace ams::controller {
|
||||||
report->size = sizeof(controller::SwitchInputReport0x21);
|
report->size = sizeof(controller::SwitchInputReport0x21);
|
||||||
reportData->id = 0x21;
|
reportData->id = 0x21;
|
||||||
reportData->input0x21.conn_info = 0;
|
reportData->input0x21.conn_info = 0;
|
||||||
reportData->input0x21.battery = 8;
|
reportData->input0x21.battery = m_battery | m_charging;
|
||||||
reportData->input0x21.buttons = {0x00, 0x00, 0x00};
|
reportData->input0x21.buttons = {0x00, 0x00, 0x00};
|
||||||
reportData->input0x21.left_stick = {0x0b, 0xb8, 0x78};
|
reportData->input0x21.left_stick = {0x0b, 0xb8, 0x78};
|
||||||
reportData->input0x21.right_stick = {0xd9, 0xd7, 0x81};
|
reportData->input0x21.right_stick = {0xd9, 0xd7, 0x81};
|
||||||
|
|
Loading…
Reference in a new issue