KeyInteractionButton.cs 842 B

1234567891011121314151617181920212223242526
  1. // /******************************************************************************
  2. // * File: KeyInteractionButton.cs
  3. // * Copyright (c) 2023 Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved.
  4. // *
  5. // *
  6. // ******************************************************************************/
  7. using UnityEngine;
  8. using UnityEngine.EventSystems;
  9. using QCHT.Interactions.Distal;
  10. namespace QCHT.Samples.XRKeyboard
  11. {
  12. public class KeyInteractionButton : KeyButton
  13. {
  14. [SerializeField] private DistalInteractorType DistalInteractorType = DistalInteractorType.Gaze;
  15. public DistalInteractorType Interaction => DistalInteractorType;
  16. public override void OnPointerDown(PointerEventData eventData)
  17. {
  18. base.OnPointerDown(eventData);
  19. OnPointerUp(eventData);
  20. }
  21. }
  22. }