Microsoft DirectX 8.1 (Visual Basic)

DirectInputDevice8.GetEffectsEnum

Enumerates force-feedback effects supported by the device, including standard effects as well as effects designed by the device manufacturer.

object.GetEffectsEnum( _
  effType As CONST_DIEFTFLAGS _
) As DirectInputEnumEffects

Parts

object
Resolves to a DirectInputDevice8 object.
effType
One of the following flags from the CONST_DIEFTFLAGS enumeration specifying the type of effect to be enumerated:

DIEFT_ALL
DIEFT_CONDITION
DIEFT_CONSTANTFORCE
DIEFT_CUSTOMFORCE
DIEFT_HARDWARE
DIEFT_PERIODIC
DIEFT_RAMPFORCE

Return Values

Returns a DirectInputEnumEffects object whose methods can be used to retrieve information about the effects.

Error Codes

If the method fails, an error is raised and Err.Number is set.