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()); }
private void inputManagerSync_NewInputState(object sender, NewInputStateEventArgs e) { UpdateInputState(e.CurrentInputState); }
private void InvokeNewInputStateEvent(InputState inputState) { if (NewInputState != null) { NewInputStateEventArgs eventArgs = new NewInputStateEventArgs(inputState); NewInputState.Invoke(this, eventArgs); } }