Commit 141a2679 authored by Christoph Frick's avatar Christoph Frick Committed by Alexandre Julliard

dinput: Call fake_current_js_state on the places where it is actually needed in SetProperty.

parent cd7e1d57
...@@ -1140,6 +1140,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, ...@@ -1140,6 +1140,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
This->wantmax[obj] = pr->lMax; This->wantmax[obj] = pr->lMax;
} }
} }
fake_current_js_state(This);
return DI_OK; return DI_OK;
} }
case (DWORD)DIPROP_DEADZONE: { case (DWORD)DIPROP_DEADZONE: {
...@@ -1157,6 +1158,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, ...@@ -1157,6 +1158,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
This->deadz[obj] = pd->dwData; This->deadz[obj] = pd->dwData;
} }
} }
fake_current_js_state(This);
return DI_OK; return DI_OK;
} }
default: default:
...@@ -1164,7 +1166,6 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, ...@@ -1164,7 +1166,6 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
break; break;
} }
} }
fake_current_js_state(This);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment