Exemplo n.º 1
0
 /// <summary>
 /// Load a given <see cref="InputProfile"/>.
 /// </summary>
 /// <param name="profile">The input profile to load.</param>
 public void LoadProfile(InputProfile profile)
 {
     inputProfile = profile;
 }
Exemplo n.º 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>
 public InputHandler(PlayerIndex playerIndex)
 {
     PlayerIndex  = playerIndex;
     inputProfile = InputManager.GetProfile("Basic");
     gamePad      = new SmartGamepad(PlayerIndex);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Load an <see cref="InputProfile"/> that has been registered with the <see cref="InputManager"/>.
 /// </summary>
 /// <param name="profile">The name of the input profile that was previously saved to the <see cref="InputManager"/>.</param>
 public void LoadProfile(string profile)
 {
     inputProfile = InputManager.GetProfile(profile);
 }
Exemplo n.º 4
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);
 }