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