From 6407e0cc37185997480ca66d90d4ec6d8b276481 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 9 Jan 2024 11:43:12 -0800 Subject: [PATCH] Added attribution for GIP protocol handling (thanks @medusalix!) --- src/joystick/hidapi/SDL_hidapi_xboxone.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c index a7a6508fd..4631f1fa8 100644 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c @@ -1154,6 +1154,10 @@ static SDL_bool HIDAPI_DriverXboxOne_UpdateInitState(SDL_DriverXboxOne_Context * return SDL_TRUE; } +/* GIP protocol handling adapted under the Zlib license with permission from @medusalix: + * https://github.com/medusalix/xone/blob/master/bus/protocol.h + * https://github.com/medusalix/xone/blob/master/bus/protocol.c + */ #define GIP_HEADER_MIN_LENGTH 3 /* Internal commands */