mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-22 20:33:07 +00:00
btdrv-mitm: set charging flag for xbox one controller
This commit is contained in:
parent
dcfc88fcd8
commit
2b227e991c
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ namespace ams::controller {
|
|||
|
||||
void XboxOneController::handleInputReport0x04(const XboxOneReportData *src, SwitchReportData *dst) {
|
||||
m_battery = src->input0x04.capacity << 1;
|
||||
m_charging = src->input0x04.charging;
|
||||
|
||||
packStickData(&dst->input0x30.left_stick, STICK_ZERO, STICK_ZERO);
|
||||
packStickData(&dst->input0x30.right_stick, STICK_ZERO, STICK_ZERO);
|
||||
|
|
Loading…
Reference in a new issue