Force Feedback

Force feedback is the generation of push or resistance in an input/output device, for example by motors mounted in the base of a joystick. DirectInput allows you to generate force feedback effects for devices that have compatible drivers.

The following sections introduce the elements of force feedback:

·Basic Concepts of Force Feedback

·Effect Enumeration

·Information About a Supported Effect

·Creating an Effect

·Effect Direction

·Examples of Setting Effect Direction

·Envelopes and Offsets

·Effect Playback

·Downloading and Unloading Effects

·Changing an Effect

·Gain

·Force Feedback State

·Effect Object Enumeration

·Constant Forces

·Ramp Forces

·Periodic Effects

·Conditions

·Custom Forces

·Device-Specific Effects

To enumerate, create, and manipulate effects, you must first obtain a pointer to the IDirectInputDevice2 interface for the force feedback device. For an example of how to do this, see Creating the DirectInput Device.