Microsoft DirectX 8.1 (Visual Basic) |
Creates a force-feedback effect. If the device is currently acquired at the exclusive cooperative level, the effect is also downloaded.
object.CreateEffect(effectGuid As String, _ effectinfo As DIEFFECT) As DirectInputEffect
GUID_ConstantForce
GUID_RampForce
GUID_Square
GUID_Sine
GUID_Triangle
GUID_SawtoothUp
GUID_SawtoothDown
GUID_Spring
GUID_Damper
GUID_Inertia
GUID_Friction
Returns a DirectInputEffect object.
If the method fails, an error is raised and Err.Number may be one of the following error codes.
DIERR_DEVICEFULL |
DIERR_DEVICENOTREG |
DIERR_INVALIDPARAM |
DIERR_NOTINITIALIZED |
If no error is raised, the effect was created and the parameters of the effect were updated, but the effect was not necessarily downloaded. In order for it to be downloaded, the device must be acquired in exclusive mode.