The sample code is included in the MainDemo project -> “overlay” tab -> “mouse controlled target”
In the older versions of the SDK the overlay index must be first selected with VideoGrabber.OverlaySelector before setting the value. As this is not thread-safe…