mirror of https://github.com/encounter/SDL.git
Disable the HIDAPI Wii driver by default as it doesn't work with the dolphinbar
This commit is contained in:
parent
6391ad970c
commit
efdb390caa
|
@ -872,7 +872,7 @@ extern "C" {
|
||||||
* "0" - HIDAPI driver is not used
|
* "0" - HIDAPI driver is not used
|
||||||
* "1" - HIDAPI driver is used
|
* "1" - HIDAPI driver is used
|
||||||
*
|
*
|
||||||
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI
|
* This driver doesn't work with the dolphinbar, so the default is SDL_FALSE for now.
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_WII "SDL_JOYSTICK_HIDAPI_WII"
|
#define SDL_HINT_JOYSTICK_HIDAPI_WII "SDL_JOYSTICK_HIDAPI_WII"
|
||||||
|
|
||||||
|
|
|
@ -170,9 +170,13 @@ HIDAPI_DriverWii_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
static SDL_bool
|
static SDL_bool
|
||||||
HIDAPI_DriverWii_IsEnabled(void)
|
HIDAPI_DriverWii_IsEnabled(void)
|
||||||
{
|
{
|
||||||
|
#if 1 /* This doesn't work with the dolphinbar, so don't enable by default right now */
|
||||||
|
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_WII, SDL_FALSE);
|
||||||
|
#else
|
||||||
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_WII,
|
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_WII,
|
||||||
SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI,
|
SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI,
|
||||||
SDL_HIDAPI_DEFAULT));
|
SDL_HIDAPI_DEFAULT));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_bool
|
static SDL_bool
|
||||||
|
|
Loading…
Reference in New Issue