Microsoft DirectX 8.1 (Visual Basic)

DirectInput8.GetDevicesBySemantics

Enumerates devices that most closely match the application-specified action map.

object.GetDevicesBySemantics( _
  str1 As String, _
  format As DIACTIONFORMAT, _
  flags As Long _
) As DirectInputEnumDevices8

Parts

object
Resolves to a DirectInput8 object.
str1
String identifying the current user, or vbNullString to specify the user logged onto the system. The user name is taken into account when enumerating devices. A device with user mappings is preferred to a device without any user mappings. By default, devices in use by other users are not enumerated for this user.
format
DIACTIONFORMAT type that specifies the action map for which suitable devices are enumerated.
flags
Flag value that specifies the scope of the enumeration. Can be one or more values from the CONST_DIEDBSFLFLAGS enumeration.

Return Values

Returns a DirectInputEnumDevices8 object that represents the collection of enumerated devices.

Error Codes

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

Remarks

The keyboard and mouse are enumerated last.

See Also

Action Mapping