private void InvokeNewInputStateEvent(InputState inputState)
 {
     if (NewInputState != null)
     {
         NewInputStateEventArgs eventArgs = new NewInputStateEventArgs(inputState);
         NewInputState.Invoke(this, eventArgs);
     }
 }
Example #2
0
        private void inputManager_NewInputState(object sender, NewInputStateEventArgs e)
        {
            SendDroneCommands(e.CurrentInputState);
            this.BeginInvoke(new NewInputStateHandler(inputManagerSync_NewInputState), this, e);

            Console.WriteLine(e.CurrentInputState.ToString());
        }
 private void InvokeNewInputStateEvent(InputState inputState)
 {
     if (NewInputState != null)
     {
         NewInputStateEventArgs eventArgs = new NewInputStateEventArgs(inputState);
         NewInputState.Invoke(this, eventArgs);
     }
 }
Example #4
0
 private void inputManagerSync_NewInputState(object sender, NewInputStateEventArgs e)
 {
     UpdateDroneState(e.CurrentInputState);
 }