/// <summary> /// Handle updates to the buttons on the Gamepad /// </summary> /// <param name="update">The parameter is not used.</param> /// <returns>An Iterator</returns> private IEnumerator <ITask> JoystickUpdateButtonsHandler(game.UpdateButtons update) { if (this.dashboardForm != null) { WinFormsServicePort.FormInvoke(() => this.dashboardForm.UpdateJoystickButtons(update.Body)); } yield break; }
IEnumerator <ITask> JoystickUpdateButtonsHandler(game.UpdateButtons update) { if (_driveControl != null) { WinFormsServicePort.FormInvoke( delegate() { _driveControl.UpdateJoystickButtons(update.Body); } ); } yield break; }
public void UpdateButtonsHandler(gc.UpdateButtons update) { _state.Buttons = update.Body; update.ResponsePort.Post(DefaultUpdateResponseType.Instance); SendNotification(_subMgr, update); }