Allow other applications to open controllers on macOS

This commit is contained in:
Sam Lantinga 2023-06-03 11:53:36 -07:00
parent 6815e75caf
commit fa41ece65f

View file

@ -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;
}