示例#1
0
        internal DeviceLoopOperation(DeviceLoopOperationDelegate operation, bool blocking, HapticDevice dev)
        {
            if (operation == null)
                throw new ArgumentNullException("operation");

            this.operation = operation;
            this.blocking = blocking;
            this.device = dev;
        }
示例#2
0
 public DeviceLoopOperation RegisterDeviceLoopOperation(DeviceLoopOperationDelegate operation, bool isBlocking)
 {
     DeviceLoopOperation op = new DeviceLoopOperation(operation, isBlocking, this);
     loopOps.Add(op);
     op.Register();
     return op;
 }