示例#1
0
        private void VjoyDeviceConfig_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            VjoyDeviceConfig config       = (VjoyDeviceConfig)sender;
            uint             vjoyDeviceId = config.GetVjoyDeviceId();
            string           msg          = string.Format("vjoy_config {0} {1} {2}\n", vjoyDeviceId, e.Name, e.Value);

            Send(msg);
        }
示例#2
0
 public VjoyDevice(VjoyInterface vjoyInterface, uint vjoyDeviceId)
 {
     if (vjoyDeviceId < 1 || vjoyDeviceId > 16)
     {
         throw new ArgumentException("Invalid device ID");
     }
     this.vjoy         = new vJoy();
     this.vjoyDeviceId = vjoyDeviceId;
     this.config       = new VjoyDeviceConfig(vjoyDeviceId);
     this.status       = Status.Disabled;
     this.statusLock   = new object();
     this.exported     = true;
     this.exportedLock = new object();
     this.controllers  = new List <VjoyController>();
 }