Microsoft DirectX 8.1 (Visual Basic) |
object.GetDIDevices( _ deviceType As CONST_DI8DEVICETYPE, _ flags As CONST_DIENUMDEVICESFLAGS) _ As DirectInputEnumDevices8
Returns a DirectInputEnumDevices8 object.
If the method fails, an error is raised and Err.Number is set.
All installed devices can be enumerated, even if they are not present. For example, a joystick may be installed on the system but not currently plugged into the computer.
If a single piece of hardware can function as more than one Microsoft® DirectInput® device type, it will be returned for each device type it supports. For example, a keyboard with a built-in mouse will be enumerated as a keyboard and as a mouse. The product GUID would be the same for each device, however.