Platform SDK: DirectX

DirectInputEnumDevices.GetItem

The DirectInputEnumDevices.GetItem method returns information about an enumerated device.

object.GetItem(index As Long) As DirectInputDeviceInstance

Parameters

object
Object expression that resolves to a DirectInputEnumDevices object.
index
The specific DirectInput device data entry in DirectInputEnumDevices.

Return Values

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

Error Codes

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

Remarks

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