OVRTouchpadHelper.cs 613 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using UnityEngine;
  3. namespace OvrLip
  4. {
  5. public sealed class OVRTouchpadHelper : MonoBehaviour
  6. {
  7. private void Awake()
  8. {
  9. UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
  10. }
  11. private void Start()
  12. {
  13. OVRMessenger.AddListener<OVRTouchpad.TouchEvent>("Touchpad", new OVRCallback<OVRTouchpad.TouchEvent>(this.LocalTouchEventCallback));
  14. }
  15. private void Update()
  16. {
  17. OVRTouchpad.Update();
  18. }
  19. public void OnDisable()
  20. {
  21. OVRTouchpad.OnDisable();
  22. }
  23. private void LocalTouchEventCallback(OVRTouchpad.TouchEvent touchEvent)
  24. {
  25. switch (touchEvent)
  26. {
  27. }
  28. }
  29. }
  30. }