Platform SDK: DirectX |
The DirectInput.CreateDevice method creates and initializes an instance of a device based on a given GUID.
object.CreateDevice(guid As String) As DirectInputDevice
If the method succeeds, a DirectInputDevice object is returned.
If the method fails, an error is raised and Err.Number may be set to one of the following:
DIERR_DEVICENOTREG |
DIERR_INVALIDPARAM |
DIERR_NOINTERFACE |
DIERR_OUTOFMEMORY |