DirectX SDK |
The IDirectInputDevice7::Escape method sends a hardware-specific command to the force-feedback driver.
HRESULT Escape( LPDIEFFESCAPE pesc );
If the method succeeds, the return value is DI_OK.
If the method fails, the return value can be one of the following error values:
DIERR_DEVICEFULL |
DIERR_NOTINITIALIZED |
Other device-specific error codes are also possible. Ask the hardware manufacturer for details.
Since each driver implements different escapes, it is the application's responsibility to ensure that it is sending the escape to the correct driver by comparing the value of the guidFFDriver member of the DIDEVICEINSTANCE structure against the value the application is expecting.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dinput.h.
Import Library: Use dinput.lib.