Skip to content

Commit 0dea186

Browse files
committed
add zerplus init packets on top
1 parent 61b4e97 commit 0dea186

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

xpad.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,20 @@ static const u8 xboxone_s_init[] = {
540540
0x05, 0x20, 0x00, 0x0f, 0x06
541541
};
542542

543+
/*
544+
* This packet is required for some zeroplus pads (0x045e:0x02ea)
545+
*/
546+
static const u8 xboxone_zeroplus_init1[] = {
547+
0x04, 0x20, 0x01, 0x00
548+
};
549+
/*
550+
* This packet is required for some zeroplus pads (0x045e:0x02ea)
551+
*/
552+
static const u8 xboxone_zeroplus_init2[] = {
553+
0x01, 0x20, 0x01, 0x09, 0x00, 0x1e, 0x20, 0x10,
554+
0x00, 0x00, 0x00, 0x00, 0x00
555+
};
556+
543557
/*
544558
* This packet is required to get additional input data
545559
* from Xbox One Elite Series 2 (0x045e:0x0b00) pads.
@@ -608,6 +622,8 @@ static const struct xboxone_init_packet xboxone_init_packets[] = {
608622
XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_init),
609623
XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_fw2015_init),
610624
XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_s_init),
625+
XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_zeroplus_init1),
626+
XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_zeroplus_init2),
611627
XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
612628
XBOXONE_INIT_PKT(0x045e, 0x0b00, extra_input_packet_init),
613629
XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_init1),

0 commit comments

Comments
 (0)