mirror of https://github.com/encounter/SDL.git
Fixed compiling with SDL_JOYSTICK_RAWINPUT disabled
This commit is contained in:
parent
eaa53a1979
commit
268aa45645
|
@ -65,10 +65,12 @@ SDL_XINPUT_JoystickInit(void)
|
||||||
{
|
{
|
||||||
s_bXInputEnabled = SDL_GetHintBoolean(SDL_HINT_XINPUT_ENABLED, SDL_TRUE);
|
s_bXInputEnabled = SDL_GetHintBoolean(SDL_HINT_XINPUT_ENABLED, SDL_TRUE);
|
||||||
|
|
||||||
|
#ifdef SDL_JOYSTICK_RAWINPUT
|
||||||
if (RAWINPUT_IsEnabled()) {
|
if (RAWINPUT_IsEnabled()) {
|
||||||
/* The raw input driver handles more than 4 controllers, so prefer that when available */
|
/* The raw input driver handles more than 4 controllers, so prefer that when available */
|
||||||
s_bXInputEnabled = SDL_FALSE;
|
s_bXInputEnabled = SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (s_bXInputEnabled && WIN_LoadXInputDLL() < 0) {
|
if (s_bXInputEnabled && WIN_LoadXInputDLL() < 0) {
|
||||||
s_bXInputEnabled = SDL_FALSE; /* oh well. */
|
s_bXInputEnabled = SDL_FALSE; /* oh well. */
|
||||||
|
|
Loading…
Reference in New Issue