GetForceFeedbackState routine
The GetForceFeedbackState callback returns the state of the device.
Syntax
HRESULT GetForceFeedbackState(
DWORD dwDeviceID,
LPDIDEVICESTATE lpDeviceState
);
Parameters
dwDeviceID
Indicates the external joystick number being addressed.lpDeviceState
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
Target platform |
|
Header |
Dinputd.h |