dinput: Pretend that DIPROP_AUTOCENTER is supported.
Star Wars Episode I Racer will ignore force-feedback joystick devices if we return an error here. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d5a44e98da
commit
e04cfc0b0a
|
@ -1082,7 +1082,8 @@ static HRESULT WINAPI dinput_device_SetProperty( IDirectInputDevice8W *iface, co
|
|||
EnterCriticalSection( &impl->crit );
|
||||
if (impl->acquired) hr = DIERR_ACQUIRED;
|
||||
else if (value->dwData > DIPROPAUTOCENTER_ON) hr = DIERR_INVALIDPARAM;
|
||||
else hr = DIERR_UNSUPPORTED;
|
||||
else if (!(impl->caps.dwFlags & DIDC_FORCEFEEDBACK)) hr = DIERR_UNSUPPORTED;
|
||||
else hr = DI_OK;
|
||||
LeaveCriticalSection( &impl->crit );
|
||||
return hr;
|
||||
}
|
||||
|
|
|
@ -7360,7 +7360,6 @@ static void test_force_feedback_joystick( void )
|
|||
prop_dword.diph.dwObj = 0;
|
||||
prop_dword.dwData = DIPROPAUTOCENTER_ON;
|
||||
hr = IDirectInputDevice8_SetProperty( device, DIPROP_AUTOCENTER, &prop_dword.diph );
|
||||
todo_wine
|
||||
ok( hr == DI_OK, "SetProperty DIPROP_AUTOCENTER returned %#x\n", hr );
|
||||
|
||||
hr = IDirectInputDevice8_Acquire( device );
|
||||
|
|
Loading…
Reference in New Issue