Newer
Older
HoloAnatomy / Assets / HoloToolkit / Input / Scripts / InputEventData / SelectPressedEventData.cs
SURFACEBOOK2\jackwynne on 25 May 2018 909 bytes v1
  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License. See LICENSE in the project root for license information.
  3.  
  4. using UnityEngine.EventSystems;
  5.  
  6. namespace HoloToolkit.Unity.InputModule
  7. {
  8. /// <summary>
  9. /// Describes an input event that involves a select press.
  10. /// </summary>
  11. public class SelectPressedEventData : BaseInputEventData
  12. {
  13. /// <summary>
  14. /// The amount, from 0.0 to 1.0, that the select was pressed.
  15. /// </summary>
  16. public double PressedAmount { get; private set; }
  17.  
  18. public SelectPressedEventData(EventSystem eventSystem) : base(eventSystem)
  19. {
  20. }
  21.  
  22. public void Initialize(IInputSource inputSource, uint sourceId, object tag, double pressedAmount)
  23. {
  24. BaseInitialize(inputSource, sourceId, tag);
  25. PressedAmount = pressedAmount;
  26. }
  27. }
  28. }