mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 06:25:50 +00:00
Enable HIDAPI PS3 support by default on macOS
This commit is contained in:
parent
3ed8e219a5
commit
645b0f6abf
|
@ -79,12 +79,15 @@ HIDAPI_DriverPS3_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
static SDL_bool
|
static SDL_bool
|
||||||
HIDAPI_DriverPS3_IsEnabled(void)
|
HIDAPI_DriverPS3_IsEnabled(void)
|
||||||
{
|
{
|
||||||
#if 1 /* This is not enabled by default, it needs much more testing */
|
#ifdef __MACOSX__
|
||||||
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_PS3, SDL_FALSE);
|
|
||||||
#else
|
|
||||||
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_PS3,
|
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_PS3,
|
||||||
SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI,
|
SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI,
|
||||||
SDL_HIDAPI_DEFAULT));
|
SDL_HIDAPI_DEFAULT));
|
||||||
|
#else
|
||||||
|
/* Linux already has good PS3 drivers and controller initialization fails on Windows,
|
||||||
|
* so don't bother using this driver on other platforms.
|
||||||
|
*/
|
||||||
|
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_PS3, SDL_FALSE);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue