Example #1
0
 static void Main()
 {
     Log              = new Log();
     VjoyInterface    = new VjoyInterface();
     NetworkInterface = new NetworkInterface();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new MainForm());
 }
Example #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>();
 }