internal DeviceLoopOperation(DeviceLoopOperationDelegate operation, bool blocking, HapticDevice dev) { if (operation == null) throw new ArgumentNullException("operation"); this.operation = operation; this.blocking = blocking; this.device = dev; }
public DeviceLoopOperation RegisterDeviceLoopOperation(DeviceLoopOperationDelegate operation, bool isBlocking) { DeviceLoopOperation op = new DeviceLoopOperation(operation, isBlocking, this); loopOps.Add(op); op.Register(); return op; }