DirectX SDK

DirectInputDevice.Acquire

The DirectInputDevice.Acquire method obtains access to the input device.

object.Acquire()

Parameters

object
Object expression that resolves to a DirectInputDevice object.

Error Codes

If the method fails, an error is raised and Err.Number may be one of the following error codes::

DIERR_INVALIDPARAM
DIERR_OTHERAPPHASPRIO

Remarks

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.

See Also

DirectInputDevice.Unacquire