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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __MACOS__
|
||||||
|
hid_darwin_set_open_exclusive(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
++SDL_hidapi_refcount;
|
++SDL_hidapi_refcount;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue