mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
Update the SDL HIDAPI API to match upstream hidapi 0.14.0
This commit is contained in:
parent
003a9b9666
commit
af45ae7296
6 changed files with 176 additions and 25 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue