mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
dinput: Call fake_current_js_state on the places where it is actually needed in SetProperty.
This commit is contained in:
parent
cd7e1d5707
commit
141a267957
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue