mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-25 12:38:29 +00:00
Allow other applications to open controllers on macOS
This commit is contained in:
@@ -1195,6 +1195,10 @@ int SDL_hid_init(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef __MACOS__
|
||||
hid_darwin_set_open_exclusive(0);
|
||||
#endif
|
||||
|
||||
++SDL_hidapi_refcount;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user