Fixed SDL_HapticOpenFromJoystick() with DirectInput devices.

This commit is contained in:
Ryan C. Gordon 2014-03-17 19:11:18 -04:00
parent e4f4a38c99
commit 15dc860cfe
2 changed files with 39 additions and 30 deletions

View file

@ -1025,7 +1025,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index)
result =
IDirectInputDevice8_SetCooperativeLevel(joystick->hwdata->
InputDevice, SDL_HelperWindow,
DISCL_NONEXCLUSIVE |
DISCL_EXCLUSIVE |
DISCL_BACKGROUND);
if (FAILED(result)) {
return SetDIerror("IDirectInputDevice8::SetCooperativeLevel", result);