Esempio n. 1
0
 public void UnlinkDevice()
 {
     if (this.IsLinked)
     {
         this.DisposeDevice();
         //if (this.linkedDevice != null)
         //    Debug.Log("Unlinked " + this.name + " from I\\O Device " + this.linkedDevice.DeviceID());
         this.linkedDevice = null;
         this.DeviceIndex  = -1;
     }
 }
Esempio n. 2
0
 public bool LinkDevice(SenseGloveCs.IODevice device, int index)
 {
     if (!this.IsLinked && this.CanLinkTo(device))
     {
         this.linkedDevice = device;
         this.DeviceIndex  = index;
         this.SetupDevice();
         //Debug.Log("Linked " + this.name + " to I\\O Device " + device.DeviceID());
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
 protected virtual bool CanLinkTo(SenseGloveCs.IODevice device)
 {
     return(device != null);
 }