Пример #1
0
sge::dinput::joypad::ff::dinput_effect_unique_ptr
sge::dinput::joypad::ff::create_effect(
	IDirectInputDevice8 &_device,
	REFGUID _guid,
	DIEFFECT const &_effect
)
{
	IDirectInputEffect *result;

	if(
		_device.CreateEffect(
			_guid,
			&_effect,
			&result,
			nullptr
		)
		!=
		DI_OK
	)
		throw
			sge::input::exception{
				FCPPT_TEXT("CreateEffect failed")
			};

	return
		sge::dinput::joypad::ff::dinput_effect_unique_ptr{
			result
		};
}
 HRESULT _stdcall CreateEffect(REFGUID a,LPCDIEFFECT b,LPDIRECTINPUTEFFECT *c,LPUNKNOWN d) { return RealDevice->CreateEffect(a,b,c,d); }