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) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for