IDirectInputEffectDriver::GetForceFeedbackState method (dinputd.h)

The IDirectInputEffectDriver::GetForceFeedbackState method retrieves the force-feedback state for the device.

Syntax

HRESULT GetForceFeedbackState(
  DWORD           unnamedParam1,
  LPDIDEVICESTATE unnamedParam2
);

Parameters

unnamedParam1

Indicates the external joystick number being addressed.

unnamedParam2

Points to a DIDEVICESTATE structure that receives the device state. DirectInput sets the dwSize member of the DIDEVICESTATE structure to sizeof(DIDEVICESTATE) before calling this method.

Return value

Returns S_OK if successful; otherwise, returns an error code.

Requirements

Requirement Value
Target Platform Desktop
Header dinputd.h (include Dinputd.h)