From a4626dea8dc48813dd5219f2430022be6b9c7825 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 5 Nov 2022 14:24:41 -0700 Subject: [PATCH] Fixed initializing the PDP Xbox One and Victrix Gambit controllers --- src/joystick/hidapi/SDL_hidapi_xboxone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c index d6a864057..186d57745 100644 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c @@ -84,10 +84,10 @@ typedef struct { static const SDL_DriverXboxOne_InitPacket xboxone_init_packets[] = { - /* The PDP Rock Candy controller doesn't start sending input until it gets this packet */ - { 0x0e6f, 0x0246, 0x0000, 0x0000, security_passed_packet, sizeof(security_passed_packet), { 0x00, 0x00 } }, { 0x0000, 0x0000, 0x0000, 0x0000, xboxone_init0, sizeof(xboxone_init0), { 0x00, 0x00 } }, { 0x0000, 0x0000, 0x0000, 0x0000, xboxone_init1, sizeof(xboxone_init1), { 0x00, 0x00 } }, + /* The PDP Rock Candy and Victrix Gambit controllers don't start sending input until they get this packet */ + { 0x0e6f, 0x0000, 0x0000, 0x0000, security_passed_packet, sizeof(security_passed_packet), { 0x00, 0x00 } }, { 0x0000, 0x0000, 0x0000, 0x0000, xboxone_init2, sizeof(xboxone_init2), { 0x00, 0x00 } }, };