Microsoft DirectX 8.1 (Visual Basic)

DirectInputDevice8.GetForceFeedbackState

Retrieves the state of the device's force-feedback system.

object.GetForceFeedbackState() As CONST_DIGFFSFLAGS 

Parts

object
Resolves to a DirectInputDevice8 object.

Return Values

Returns flags from the CONST_DIGFFSFLAGS enumeration that describe the current state of the device's force-feedback system.

Applications should ignore any flags that are not currently defined.

Error Codes

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

DIERR_INPUTLOST
DIERR_INVALIDPARAM
DIERR_NOTEXCLUSIVEACQUIRED
DIERR_NOTINITIALIZED
DIERR_UNSUPPORTED

Remarks

The device must be acquired at the exclusive cooperative level for this method to succeed.