Skip to content

Commit

Permalink
add zerplus init packets on top
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Aug 22, 2021
1 parent 389e258 commit 84eee44
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions xpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,20 @@ static const u8 xboxone_s_init[] = {
0x05, 0x20, 0x00, 0x0f, 0x06
};

/*
* This packet is required for some zeroplus pads (0x045e:0x02ea)
*/
static const u8 xboxone_zeroplus_init1[] = {
0x04, 0x20, 0x01, 0x00
};
/*
* This packet is required for some zeroplus pads (0x045e:0x02ea)
*/
static const u8 xboxone_zeroplus_init2[] = {
0x01, 0x20, 0x01, 0x09, 0x00, 0x1e, 0x20, 0x10,
0x00, 0x00, 0x00, 0x00, 0x00
};

/*
* This packet is required for the Titanfall 2 Xbox One pads
* (0x0e6f:0x0165) to finish initialization and for Hori pads
Expand Down Expand Up @@ -549,6 +563,8 @@ static const struct xboxone_init_packet xboxone_init_packets[] = {
XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_init),
XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_fw2015_init),
XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_s_init),
XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_zeroplus_init1),
XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_zeroplus_init2),
XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_init1),
XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_init2),
Expand Down

0 comments on commit 84eee44

Please sign in to comment.