mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-03 02:17:39 +00:00
Allow other applications to open controllers on macOS
This commit is contained in:
parent
6815e75caf
commit
fa41ece65f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue