/// <summary>Inicializa uma nova instância de GamePadHelper.</summary>
 /// <param name="playerIndex">O index do GamePad.</param>
 /// <param name="keyboardMap">o mapeamento de teclas para botões do GamePad.</param>
 public GamePadHelper(PlayerIndex playerIndex, KeyboardMap keyboardMap)
 {
     Index       = playerIndex;
     KeyboardMap = keyboardMap?.GetKeyboardMap();
 }
 /// <summary>
 /// <summary>Define o mapeamento de teclas para botões do GamePad.</summary>
 /// </summary>
 /// <param name="keyboardMap">o mapeamento de teclas para botões do GamePad.</param>
 public void SetMap(KeyboardMap keyboardMap)
 {
     KeyboardMap = keyboardMap.GetKeyboardMap();
 }
 /// <summary>Inicializa uma nova instância de GamePadHelper.</summary>
 /// <param name="playerIndex">O index do GamePad.</param>
 /// <param name="keyboardMap">O mapeamento de teclas para botões do GamePad.</param>
 /// <param name="padState">Define o estdo do GamePad.</param>
 public GamePadHelper(PlayerIndex playerIndex, KeyboardMap keyboardMap, GamePadState padState) : this(playerIndex, keyboardMap)
 {
     State = padState;
 }