Skip to content

Commit

Permalink
Update XboxOne start code for S-era controllers
Browse files Browse the repository at this point in the history
Use the 5 byte start code ref:
quantus/xbox-one-controller-protocol#3
  • Loading branch information
jamieson authored and joolswills committed Jan 3, 2023
1 parent 753871b commit b04589d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xboxone_wired_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ bool XboxOneWiredController::parse_auth_status(uint8_t* data, int len, XboxGener
{
if(!sent_auth && data[1] == 0x20)
{
uint8_t authbuf[2] = { 0x05, 0x20 };
usb_write(endpoint, authbuf, 2);
uint8_t authbuf[5] = { 0x05, 0x20, 0x00, 0x01, 0x00 };
usb_write(endpoint, authbuf, 5);
sent_auth = true;
}

Expand Down

0 comments on commit b04589d

Please sign in to comment.