Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
xinput: Only grab first interface from xbone controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Jun 6, 2022
1 parent b328c54 commit cf04784
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Firmware/src/usbh/usbh_xinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ uint8_t XINPUT::Init(uint8_t parent __attribute__((unused)), uint8_t port __attr
continue;
}

if (_type == XBOXONE)
{
//For XBONE we only want the first interface
num_itf = 1;
}

USBH_XINPUT_DEBUG(F("USBH XINPUT: XID TYPE: "));
USBH_XINPUT_DEBUG(_type);
USBH_XINPUT_DEBUG("\n");
Expand Down

0 comments on commit cf04784

Please sign in to comment.