[][src]Function vigem_sys::binds::vigem_target_get_index

pub unsafe extern "C" fn vigem_target_get_index(target: PVIGEM_TARGET) -> ULONG

\fn ULONG vigem_target_get_index(PVIGEM_TARGET target);

\brief Returns the internal index (serial number) the bus driver assigned to the provided target device object. Note that this value is specific to the inner workings of the bus driver, it does not reflect related values like player index or device arrival order experienced by other APIs. It may be used to identify the target device object for its lifetime. This value becomes invalid once the target device is removed from the bus and may change on the next addition of the device.

\author Benjamin "Nefarius" H�glinger \date 28.08.2017

\param target The target device object.

\return The internally used index of the target device.