protected override void Start() { cb = new EyeTrackerBlinkCallback(this.InterfaceCallback); Interface.osvrRegisterEyeTrackerBlinkCallback(iface.Handle, cb, IntPtr.Zero); }
public extern static Byte osvrRegisterEyeTrackerBlinkCallback(SafeClientInterfaceHandle iface, [MarshalAs(UnmanagedType.FunctionPtr)] EyeTrackerBlinkCallback cb, IntPtr /*void**/ userdata);
public void registerCallback(EyeTrackerBlinkCallback cb, IntPtr /*void*/ userdata) { osvrRegisterEyeTrackerBlinkCallback(m_interface, cb, userdata); }