PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/Gui/Input/Buttons.cs

http://xnagui.codeplex.com
C# | 130 lines | 30 code | 23 blank | 77 comment | 0 complexity | 40023b3ca42f5b181fa5c90d694a323c MD5 | raw file
  1. namespace Microsoft.Xna.Framework.Input
  2. {
  3. /// <summary>
  4. /// An enumeration of all of the buttons that are available on a game pad. This is more broad than
  5. /// the Microsoft.Xna.Input.Buttons enumeration; this adds in buttons for trigger presses and thumbstick
  6. /// presses in each of the four directions.
  7. /// </summary>
  8. public enum Buttons
  9. {
  10. /// <summary>
  11. /// Represents the A button.
  12. /// </summary>
  13. A,
  14. /// <summary>
  15. /// Represents the B button.
  16. /// </summary>
  17. B,
  18. /// <summary>
  19. /// Represents the X button.
  20. /// </summary>
  21. X,
  22. /// <summary>
  23. /// Represents the Y button.
  24. /// </summary>
  25. Y,
  26. /// <summary>
  27. /// Represents the Start button.
  28. /// </summary>
  29. Start,
  30. /// <summary>
  31. /// Represents the Back button.
  32. /// </summary>
  33. Back,
  34. /// <summary>
  35. /// Represents the left shoulder button on the top of the controller.
  36. /// </summary>
  37. LeftShoulder,
  38. /// <summary>
  39. /// Represents the right shoulder button on the top of the controller.
  40. /// </summary>
  41. RightShoulder,
  42. /// <summary>
  43. /// Reperesents the up button on the D-pad (directional pad).
  44. /// </summary>
  45. DPadUp,
  46. /// <summary>
  47. /// Represents the down button on the D-pad (directional pad).
  48. /// </summary>
  49. DPadDown,
  50. /// <summary>
  51. /// Represents the left button on the D-pad (directional pad).
  52. /// </summary>
  53. DPadLeft,
  54. /// <summary>
  55. /// Represents the right button on the D-pad (directional pad).
  56. /// </summary>
  57. DPadRight,
  58. /// <summary>
  59. /// Represents the left trigger being pressed in.
  60. /// </summary>
  61. LeftTrigger,
  62. /// <summary>
  63. /// Represents the right trigger being pressed in.
  64. /// </summary>
  65. RightTrigger,
  66. /// <summary>
  67. /// Represents the left thumbstick being moved to the left.
  68. /// </summary>
  69. LeftThumbstickLeft,
  70. /// <summary>
  71. /// Represents the left thumbstick being moved to the right.
  72. /// </summary>
  73. LeftThumbstickRight,
  74. /// <summary>
  75. /// Represents the left thumbstick being moved up.
  76. /// </summary>
  77. LeftThumbstickUp,
  78. /// <summary>
  79. /// Represents the left thumbstick being moved down.
  80. /// </summary>
  81. LeftThumbstickDown,
  82. /// <summary>
  83. /// Represents the left thumbstick as a button.
  84. /// </summary>
  85. LeftThumbstick,
  86. /// <summary>
  87. /// Represents the right thumbstick being moved left.
  88. /// </summary>
  89. RightThumbstickLeft,
  90. /// <summary>
  91. /// Represents the right thumbstick being moved right.
  92. /// </summary>
  93. RightThumbstickRight,
  94. /// <summary>
  95. /// Represents the right thumbstick being moved up.
  96. /// </summary>
  97. RightThumbstickUp,
  98. /// <summary>
  99. /// Represents the right thumbstick being moved down.
  100. /// </summary>
  101. RightThumbstickDown,
  102. /// <summary>
  103. /// Represents the right thumbstick as a button.
  104. /// </summary>
  105. RightThumbstick
  106. }
  107. }