Update the SDL HIDAPI API to match upstream hidapi 0.14.0

This commit is contained in:
Sam Lantinga 2023-05-24 15:16:49 -07:00
parent 003a9b9666
commit af45ae7296
6 changed files with 176 additions and 25 deletions

View file

@ -459,7 +459,7 @@ static void HIDAPI_SetupDeviceDriver(SDL_HIDAPI_Device *device, SDL_bool *remove
SDL_UnlockJoysticks();
}
dev = SDL_hid_open_path(path, 0);
dev = SDL_hid_open_path(path);
while (lock_count > 0) {
--lock_count;
@ -490,7 +490,7 @@ static void HIDAPI_SetupDeviceDriver(SDL_HIDAPI_Device *device, SDL_bool *remove
*
* See https://github.com/libsdl-org/SDL/issues/7304 for details.
*/
dev = SDL_hid_open_path(device->path, 0);
dev = SDL_hid_open_path(device->path);
#endif
if (dev == NULL) {