| Microsoft DirectX 8.1 (Visual Basic) |
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 DirectInputDevice8.SetDataFormat or DirectInputDevice8.SetCommonDataFormat method.
A device must be acquired before input data can be retrieved from it.