Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 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);
 }