Platform SDK: DirectX

DirectInputEnumDeviceObjects.GetItem

The DirectInputEnumDeviceObjects.GetItem method retrieves an object describing the specified device object.

object.GetItem(index As Long) _
  As DirectInputDeviceObjectInstance

Parameters

object
Object expression that resolves to a DirectInputEnumDeviceObjects object.
index
Index of the enumerated item to retrieve.

Return Values

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

Error Codes

If the method fails, an error is raised and Err.Number will be set.

Remarks

To get the number of entries in the DirectInputEnumDeviceObjects first call the DirectInputEnumDeviceObjects.GetCount method.