Ver Fonte

Added a link to the GIP documentation

Sam Lantinga há 7 meses atrás
pai
commit
caf269ce00
1 ficheiros alterados com 7 adições e 1 exclusões
  1. 7 1
      src/joystick/hidapi/SDL_hidapi_gip.c

+ 7 - 1
src/joystick/hidapi/SDL_hidapi_gip.c

@@ -28,8 +28,14 @@
 
 #ifdef SDL_JOYSTICK_HIDAPI_GIP
 
+// This driver is based on the Microsoft GIP spec at:
+// https://aka.ms/gipdocs
+// https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-gipusb/e7c90904-5e21-426e-b9ad-d82adeee0dbc
+
 // Define this if you want to log all packets from the controller
-//#define DEBUG_XBOX_PROTOCOL
+#if 0
+#define DEBUG_XBOX_PROTOCOL
+#endif
 
 #define MAX_MESSAGE_LENGTH 0x4000