mirror of
https://github.com/encounter/SDL.git
synced 2025-12-14 23:56:19 +00:00
Fixed SDL_HapticOpenFromJoystick() with DirectInput devices.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user