Fixed SDL_HapticOpenFromJoystick() with DirectInput devices.

This commit is contained in:
Ryan C. Gordon
2014-03-17 19:11:18 -04:00
parent cf3ff16e94
commit 7eaf899796
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);