mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-26 22:30:21 +00:00
btdrv-mitm: clear unset button state for xbox one controller
This commit is contained in:
parent
43f4870f20
commit
85aed3aa4a
1 changed files with 3 additions and 0 deletions
|
@ -75,9 +75,12 @@ namespace controller {
|
|||
|
||||
dst->report0x30.buttons.lstick_press = src->report0x01.buttons.lstick_press;
|
||||
dst->report0x30.buttons.rstick_press = src->report0x01.buttons.rstick_press;
|
||||
|
||||
dst->report0x30.buttons.capture = 0;
|
||||
}
|
||||
|
||||
void XboxOneController::handleInputReport0x02(const XboxOneReportData *src, SwitchReportData *dst) {
|
||||
std::memset(&dst->report0x30.buttons, 0, sizeof(SwitchButtonData));
|
||||
dst->report0x30.buttons.home = src->report0x02.guide;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue