DirectInput.GetDeviceStatus
The DirectInput.GetDeviceStatus method determines whether a device is attached to the system.
object.GetDeviceStatus(guid As String) As Boolean
Parameters
- object
- Object expression that resolves to a DirectInput object.
- guid
- The instance GUID for the desired input device. The GUID is retrieved by using the DirectInputDeviceInstance.GetGuidInstance method on the object returned by DirectInputEnumDevices.GetItem method, or it can be one of the following strings:
- GUID_SysKeyboard
- The default system keyboard.
- GUID_SysMouse
- The default system mouse.
Return Values
The method returns True if the device is attached, and False otherwise.
Error Codes
If the method fails, an error is raised and Err.Number may be one of the following error codes:
See Also
Using GUIDs