Exemplo n.º 1
0
    public RemoteDirectInput(string name)
      : base(name)
    {
      // This call is required by the Windows.Forms Form Designer.
      InitializeComponent();

      // TODO: Add any initialization after the InitializeComponent call
      diHandler = new DirectInputHandler();
      diHandler.Init(true);
      diHandler.DoSendActions = false; // only debug/display actions
      diHandler.OnStateChangeText += new DirectInputHandler.diStateChangeText(StateChangeAsText);
    }
Exemplo n.º 2
0
 /// <summary> 
 /// Clean up any resources being used.
 /// </summary>
 protected override void Dispose(bool disposing)
 {
   diHandler.OnStateChangeText -= new DirectInputHandler.diStateChangeText(StateChangeAsText);
   diHandler.Stop();
   diHandler = null;
   if (disposing)
   {
     if (components != null)
     {
       components.Dispose();
     }
   }
   base.Dispose(disposing);
 }