btdrv-mitm: set charging flag for xbox one controller

This commit is contained in:
ndeadly 2020-08-06 21:33:41 +02:00
parent dcfc88fcd8
commit 2b227e991c

View file

@ -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);