DirectX SDK

DirectInputDeviceObjectInstance.GetName

The DirectInputDeviceObjectInstance.GetName method retrieves the friendly name of the device object.

object.GetName() As String

Parameters

object
Object expression that resolves to a DirectInputDeviceObjectInstance object.

Return Values

The method retrieves the name of the object—for example, "X-Axis" or "Right Shift."

Error Codes

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