Platform SDK: DirectX |
The DirectInputDevice.Acquire method obtains access to the input device.
object.Acquire()
If the method fails, an error is raised and Err.Number may be one of the following error codes::
DIERR_INVALIDPARAM |
DIERR_OTHERAPPHASPRIO |
Before a device can be acquired, a data format must be set by using the DirectInputDevice.SetDataFormat or DirectInputDevice.SetCommonDataFormat method.
A device must be acquired before input data can be retrieved from it.