Commit 25c88ea90327bbbbe8244272574bdfb9c92f7b0c

Sam Lantinga 2020-01-20T13:53:40

The Xbox One 0x01 initialization packet is an ack packet

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c
index a81a6ef..55972ec 100644
--- a/src/joystick/hidapi/SDL_hidapi_xboxone.c
+++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c
@@ -46,7 +46,7 @@
 static const Uint8 xboxone_init0[] = {
     0x04, 0x20, 0x00, 0x00
 };
-/* Finish initialization? */
+/* Initial ack */
 static const Uint8 xboxone_init1[] = {
     0x01, 0x20, 0x01, 0x09, 0x00, 0x04, 0x20, 0x3a,
     0x00, 0x00, 0x00, 0x80, 0x00