Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Input
DirectInput
Reference
Interfaces

  Switch on low bandwidth view
IDirectInputDevice8 Interface
Bb205956.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb205956.XDK_CHM_BANNER_right(en-us,VS.85).jpg

IDirectInputDevice8 Interface

Applications use the methods of the IDirectInputDevice8 interface to gain and release access to Microsoft DirectInput devices, manage device properties and information, set behavior, perform initialization, create and play force-feedback effects, and invoke a device's control panel.

IDirectInputDevice8 Members

MethodDescription
IDirectInputDevice8::AcquireObtains access to the input device.
IDirectInputDevice8::BuildActionMapBuilds an action map for the device and retrieves information about it.
IDirectInputDevice8::CreateEffectCreates and initializes an instance of an effect identified by the effect globally unique identifier (GUID).
IDirectInputDevice8::EnumCreatedEffectObjectsEnumerates all the currently created effects for this device.
IDirectInputDevice8::EnumEffectsEnumerates all the effects supported by the force-feedback system on the device.
IDirectInputDevice8::EnumEffectsInFileEnumerates all the effects in a file created by the Force Editor utility or another application using the same file format.
IDirectInputDevice8::EnumObjectsEnumerates the input and output objects available on a device.
IDirectInputDevice8::EscapeSends a hardware-specific command to the force-feedback driver.
IDirectInputDevice8::GetCapabilitiesObtains the capabilities of the DirectInputDevice object.
IDirectInputDevice8::GetDeviceDataRetrieves buffered data from the device.
IDirectInputDevice8::GetDeviceInfoObtains information about the device's identity.
IDirectInputDevice8::GetDeviceStateRetrieves immediate data from the device.
IDirectInputDevice8::GetEffectInfoObtains information about an effect.
IDirectInputDevice8::GetForceFeedbackStateRetrieves the state of the device's force-feedback system.
IDirectInputDevice8::GetImageInfoRetrieves information about a device image for use in a configuration property sheet.
IDirectInputDevice8::GetObjectInfoRetrieves information about a device object, such as a button or axis.
IDirectInputDevice8::GetPropertyRetrieves information about the input device.
IDirectInputDevice8::InitializeInitializes a DirectInputDevice object.
IDirectInputDevice8::PollRetrieves data from polled objects on a DirectInput device.
IDirectInputDevice8::RunControlPanelRuns the DirectInput control panel associated with this device.
IDirectInputDevice8::SendDeviceDataSends data to a device that accepts output.
IDirectInputDevice8::SendForceFeedbackCommandSends a command to the device's force-feedback system.
IDirectInputDevice8::SetActionMapSets the data format for a device and maps application-defined actions to device objects.
IDirectInputDevice8::SetCooperativeLevelEstablishes the cooperative level for this instance of the device.
IDirectInputDevice8::SetDataFormatSets the data format for the DirectInput device.
IDirectInputDevice8::SetEventNotificationSpecifies an event that is to be set when the device state changes.
IDirectInputDevice8::SetPropertySets properties that define the device behavior.
IDirectInputDevice8::UnacquireReleases access to the device.
IDirectInputDevice8::WriteEffectToFileSaves information about one or more force-feedback effects to a file that can be read by using EnumEffectsInFile.

Remarks

The IDirectInputDevice8 interface is obtained by using the IDirectInput8::CreateDevice method. For an example, see Creating a DirectInput Device.

IDirectInputDevice8 supersedes the IDirectInputDevice, IDirectInputDevice2, and IDirectInputDevice7 interfaces used in previous versions of Microsoft DirectX, but does not inherit from them. Methods that share names with those from older interfaces perform similar services, but may not have exactly the same functionality or behavior. You cannot obtain the earlier interfaces by using QueryInterface.

The LPDIRECTINPUTDEVICE8 type is defined as a pointer to the IDirectInputDevice8 interface:

typedef struct IDirectInputDevice8    *LPDIRECTINPUTDEVICE8;
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker