Пример #1
0
        private void inputManager_NewInputState(object sender, NewInputStateEventArgs e)
        {
            SendDroneCommands(e.CurrentInputState);
            UpdateDroneState(e.CurrentInputState);

            this.BeginInvoke(new NewInputStateHandler(inputManagerSync_NewInputState), this, e);
        }
        private void inputManager_NewInputState(object sender, NewInputStateEventArgs e)
        {
            SendDroneCommands(e.CurrentInputState);
            Dispatcher.BeginInvoke(new NewInputStateHandler(inputManagerSync_NewInputState), this, e);

            Console.WriteLine(e.CurrentInputState.ToString());
        }
Пример #3
0
 private void inputManagerSync_NewInputState(object sender, NewInputStateEventArgs e)
 {
     UpdateInputState(e.CurrentInputState);
 }
Пример #4
0
        private void inputManager_NewInputState(object sender, NewInputStateEventArgs e)
        {
            SendDroneCommands(e.CurrentInputState);
            UpdateDroneState(e.CurrentInputState);

            this.BeginInvoke(new NewInputStateHandler(inputManagerSync_NewInputState), this, e);
        }
Пример #5
0
 private void inputManagerSync_NewInputState(object sender, NewInputStateEventArgs e)
 {
     UpdateInputState(e.CurrentInputState);
 }
Пример #6
0
 private void InvokeNewInputStateEvent(InputState inputState)
 {
     if (NewInputState != null)
         {
              NewInputStateEventArgs eventArgs = new NewInputStateEventArgs(inputState);
              NewInputState.Invoke(this, eventArgs);
         }
 }