From 141a267957852aefcb80095a54ae925ace8f4d08 Mon Sep 17 00:00:00 2001 From: Christoph Frick Date: Thu, 6 Jul 2006 13:17:31 +0200 Subject: [PATCH] dinput: Call fake_current_js_state on the places where it is actually needed in SetProperty. --- dlls/dinput/joystick_linuxinput.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index c47caf3ca3f..f36501087f0 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -1140,6 +1140,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, This->wantmax[obj] = pr->lMax; } } + fake_current_js_state(This); return DI_OK; } case (DWORD)DIPROP_DEADZONE: { @@ -1157,6 +1158,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, This->deadz[obj] = pd->dwData; } } + fake_current_js_state(This); return DI_OK; } default: @@ -1164,7 +1166,6 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, break; } } - fake_current_js_state(This); return 0; } -- 2.11.4.GIT