Platform SDK: DirectX

DirectInputDeviceObjectInstance.GetOfs

The DirectInputDeviceObjectInstance.GetOfs method retrieves the offset of the device object's data within the data format for the device.

object.GetOfs() As Long

Parameters

object
Object expression that resolves to a DirectInputDeviceObjectInstance object.

Return Values

The method returns the offset within the data format at which data is reported for this object. This value can be used to identify the object in method calls and types that accept the DIPH_BYOFFSET flag.

Error Codes

If the method fails, an error is raised and Err.Number will be set.

See Also

DirectInputDevice.GetObjectInfo, DIPROPLONG, DIPROPRANGE