예제 #1
0
 public override void MakeCurrent()
 {
     base.MakeCurrent();
     current = this;
     SetLEDStatus(LedStatus.On);
     DebugLog("SpaceNavigatorHID : MakeCurrent");
 }
예제 #2
0
 // When one of our custom devices is removed, we want to make sure that if
 // it is the '.current' device, we null out '.current'.
 protected override void OnRemoved()
 {
     base.OnRemoved();
     if (current == this)
     {
         current = null;
     }
     SetLEDStatus(LedStatus.Off);
     DebugLog("SpaceNavigatorHID : OnRemoved");
 }