Platform SDK: DirectX

DirectInputDevice.GetObjectInfo

The DirectInputDevice.GetObjectInfo method retrieves information about a device object such as a button or axis.

object.GetObjectInfo( _ 
  Obj As Long, _
  how As CONST_DIPHFLAGS) _
  As DirectInputDeviceObjectInstance

Parameters

object
Object expression that resolves to a DirectInputDevice object.
Obj
Value that identifies the object whose information will be retrieved. The interpretation of this parameter depends on the value specified in the how parameter.
how
Value specifying how the Obj parameter should be interpreted. This value can be one of the constants of the CONST_DIPHFLAGS enumeration.

Return Values

The method returns a DirectInputDeviceObjectInstance object whose methods can be used to retrieve information about the object.

Error Codes

If the method fails, an error is raised and Err.Number may be one of the following error codes:

DIERR_INVALIDPARAM
DIERR_OBJECTNOTFOUND