DummyVRControllerButtons.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using System;
  2. using UnityEngine;
  3. public class DummyVRControllerButtons : AVRControllerButtons
  4. {
  5. public DummyVRControllerButtons()
  6. {
  7. ulong[] array = new ulong[5];
  8. array[1] = 4294967296UL;
  9. this.m_aryTouch2RealVive = array;
  10. base..ctor();
  11. }
  12. protected override void Awake()
  13. {
  14. base.Awake();
  15. this.m_eType = AVRControllerButtons.TYPE.NON_DUMMY;
  16. }
  17. private void Start()
  18. {
  19. }
  20. public override bool ShowHand
  21. {
  22. get
  23. {
  24. return false;
  25. }
  26. set
  27. {
  28. }
  29. }
  30. public override void Haptic(byte f_byFoce, float f_fTime)
  31. {
  32. }
  33. public override bool GetPressDown(AVRControllerButtons.BTN f_eBtn)
  34. {
  35. return false;
  36. }
  37. public override bool GetPress(AVRControllerButtons.BTN f_eBtn)
  38. {
  39. return false;
  40. }
  41. public override bool GetPressUp(AVRControllerButtons.BTN f_eBtn)
  42. {
  43. return false;
  44. }
  45. public override bool GetTouchDown(AVRControllerButtons.TOUCH f_eTouch)
  46. {
  47. return false;
  48. }
  49. public override bool GetTouch(AVRControllerButtons.TOUCH f_eTouch)
  50. {
  51. return false;
  52. }
  53. public override bool GetTouchUp(AVRControllerButtons.TOUCH f_eTouch)
  54. {
  55. return false;
  56. }
  57. public override Vector2 GetAxis()
  58. {
  59. return Vector2.zero;
  60. }
  61. public override float GetTriggerRate()
  62. {
  63. return 0f;
  64. }
  65. private void Update()
  66. {
  67. }
  68. private ulong[] m_aryBtn2RealVive = new ulong[]
  69. {
  70. 2UL,
  71. 4294967296UL,
  72. 4294967296UL,
  73. 8589934592UL,
  74. 2UL,
  75. 8589934592UL,
  76. 4294967296UL,
  77. 4UL
  78. };
  79. private ulong[] m_aryTouch2RealVive;
  80. private bool m_bPressLeft;
  81. private Coroutine m_coVib;
  82. }