Microsoft DirectX 8.1 (Visual Basic)

DIACTION

Specifies and receives information about the mapping of a single application action to a device object or virtual control.

Type DIACTION
    ActionName As String
    lAppData As Long
    lFlags As Long
    lHow As Long
    lObjId As Long
    lSemantic As Long
End Type

Members

ActionName
Application-defined name of the action. This string is displayed by the device property sheet when DirectInput8.ConfigureDevices is called. If sResIDString is not an empty string, this member is ignored.
lAppData
Value to be returned to the application when the state of the control associated with the action changes. This value is returned in the lUserData member of the DIDEVICEOBJECTDATA type retrieved by DirectInputDevice8.GetDeviceData.
lFlags
Flags used to request specific attributes or processing. Can be zero or one or more of the values in the CONST_DIAFLAGS enumeration.
lHow
Mapping mechanism used by Microsoft® DirectInput® to configure the action. This member receives one of the members of the CONST_DIAHFLAGS enumeration when the type is returned by DirectInputDevice8.BuildActionMap.

This member is ignored when the action map is passed to DirectInputDevice8.SetActionMap.

lObjId
Control identifier.
lSemantic
For a joystick, a predefined action mapping constant for this application genre, representing a virtual control. See CONST_DIGENRE.

This value can also be one of the CONST_DIMAPFLAGS enumeration to map the action to a virtual control not defined in a genre.

For a keyboard, mouse, or Microsoft DirectPlay® voice device, this value is a constant that represents a particular device object.

See Also

CONST_DIKEYBOARDFLAGS, CONST_DIMOUSEFLAGS, CONST_DIVOICEFLAGS