DirectX SDK

DirectInputDevice.SendForceFeedbackCommand

The DirectInputDevice.SendForceFeedbackCommand method sends a command to the device's force-feedback system.

object.SendForceFeedbackCommand(flags As Long)

Parameters

object
Object expression that resolves to a DirectInputDevice object.
flags
A single value indicating the desired change in state. The value may be one of the members of the CONST_DISFFCFLAGS enumeration.

Error Codes

If the method fails, an error is raised and Err.Number may be one of the following error codes:

DIERR_INPUTLOST
DIERR_NOTACQUIRED
DIERR_REPORTFULL
DIERR_UNPLUGGED