Пример #1
0
 /// <summary>
 /// Creates a new instance of joystick
 /// </summary>
 /// <param name="joyId">Id of simulated joystick between (1,16). It have to exists in system before the invokation.</param>
 public JoyControl(uint joyId)
 {
     if (!joyId.Between(1, 16, true))
     {
         throw new Exception(String.Format("Illegal device ID {0}", joyId));
     }
     IsBusy    = false;
     _joyId    = joyId;
     _joystick = new vJoy();
 }