Beispiel #1
0
 /// <summary>
 /// Creates an instance of a <see cref="InputHandler"/> that is attached to a given <see cref="Microsoft.Xna.Framework.PlayerIndex"/>.
 /// </summary>
 /// <param name="playerIndex">The player index this input handler will attach to.</param>
 public InputHandler(PlayerIndex playerIndex)
 {
     PlayerIndex  = playerIndex;
     inputProfile = InputManager.GetProfile("Basic");
     gamePad      = new SmartGamepad(PlayerIndex);
 }
Beispiel #2
0
 /// <summary>
 /// Creates an instance of a <see cref="InputHandler"/> that is attached to a given <see cref="Microsoft.Xna.Framework.PlayerIndex"/>.
 /// </summary>
 /// <param name="playerIndex">The player index this input handler will attach to.</param>
 /// <param name="profile">The input profile this input handler will use.</param>
 public InputHandler(PlayerIndex playerIndex, InputProfile profile)
 {
     PlayerIndex = playerIndex;
     Profile     = profile;
     gamePad     = new SmartGamepad(PlayerIndex);
 }