Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public DeviceLoopOperation RegisterDeviceLoopOperation(DeviceLoopOperationDelegate operation, bool isBlocking)
 {
     DeviceLoopOperation op = new DeviceLoopOperation(operation, isBlocking, this);
     loopOps.Add(op);
     op.Register();
     return op;
 }