Fixed SDL_HapticOpenFromJoystick() with DirectInput devices.
This commit is contained in:
parent
e4f4a38c99
commit
15dc860cfe
2 changed files with 39 additions and 30 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue