Microsoft DirectX 8.1 (Visual Basic)

DirectInputDevice8.Poll

Makes data available from polled objects on a Microsoft® DirectInput® device. If the device does not require polling, then calling this method has no effect. If a device that requires polling is not polled periodically, no new data will be received from the device. Calling this method causes Microsoft® DirectInput® to update the device state, generate input events (if buffered data is enabled), and set notification events (if notification is enabled).

object.Poll()

Parts

object
Resolves to a DirectInputDevice8 object.

Error Codes

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

DIERR_INPUTLOST
DIERR_NOTACQUIRED

Remarks

Before a device data can be polled, the data format must be set by using the DirectInputDevice8.SetDataFormat or DirectInputDevice8.SetCommonDataFormat method, and the device must be acquired by using the DirectInputDevice8.Acquire method.

See Also

Polling and Event Notification