PageRenderTime 39ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/InputSystem/Windows/WindowsGamePad.cs

#
C# | 65 lines | 31 code | 6 blank | 28 comment | 0 complexity | ca0d890eea72b7c731f0685e72211216 MD5 | raw file
Possible License(s): Apache-2.0
  1. using Delta.InputSystem.Devices;
  2. namespace Delta.InputSystem.Windows
  3. {
  4. /// <summary>
  5. /// Dummy implementation because we don't have GamePad support in Windows!
  6. /// If you want to use XnaGamePad for Xbox 360 controllers or WiimoteGamePad
  7. /// for Wii remote controller support, please add those strings at the
  8. /// beginning of your InputModule string in Settings.xml.
  9. ///
  10. /// </summary>
  11. public class WindowsGamePad : BaseGamePad
  12. {
  13. #region IsConnected (Public)
  14. /// <summary>
  15. /// Is connected, not used, will always return false!
  16. /// </summary>
  17. public override bool IsConnected
  18. {
  19. get
  20. {
  21. // Not used!
  22. return false;
  23. }
  24. }
  25. #endregion
  26. #region Rumble (Public)
  27. /// <summary>
  28. /// Rumble, not used!
  29. /// </summary>
  30. /// <param name="setLeftRumble">Set left rumble</param>
  31. /// <param name="setRightRumble">Set right rumble</param>
  32. public override void Rumble(float setLeftRumble, float setRightRumble)
  33. {
  34. // Not used!
  35. }
  36. /// <summary>
  37. /// Switch the Rumble state to On and off
  38. /// </summary>
  39. /// <param name="setRumble">true to switch on, otherwise switch off</param>
  40. public override void Rumble(bool setRumble)
  41. {
  42. }
  43. #endregion
  44. #region Methods (Private)
  45. #region Update
  46. /// <summary>
  47. /// Update this input device once a frame, done very early in the frame.
  48. /// All the native keyboard updating happens in the native implementation,
  49. /// this method will just update the totalCursorPosition.
  50. /// </summary>
  51. protected override void Update()
  52. {
  53. // Empty method, nothing is supported here (quicker than executing the
  54. // BaseGamePad.Update method).
  55. }
  56. #endregion
  57. #endregion
  58. }
  59. }