ActionMap.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //-----------------------------------------------------------------------------
  2. // ActionMap.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //-----------------------------------------------------------------------------
  7. using System.Collections.Generic;
  8. using Microsoft.Xna.Framework.Input;
  9. using Microsoft.Xna.Framework.Input.Touch;
  10. namespace RolePlaying
  11. {
  12. public static partial class InputManager
  13. {
  14. /// <summary>
  15. /// A combination of gamepad and keyboard keys mapped to a particular action.
  16. /// </summary>
  17. public class ActionMap
  18. {
  19. /// <summary>
  20. /// List of GamePad controls to be mapped to a given action.
  21. /// </summary>
  22. public List<GamePadButtons> gamePadButtons = new List<GamePadButtons>();
  23. /// <summary>
  24. /// List of Keyboard controls to be mapped to a given action.
  25. /// </summary>
  26. public List<Keys> keyboardKeys = new List<Keys>();
  27. public List<MouseButtons> mouseButtons = new List<MouseButtons>();
  28. public List<GestureType> touchGestures = new List<GestureType>();
  29. }
  30. }
  31. }