AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
SourcePositionEventData.cs
Go to the documentation of this file.
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;
5 using UnityEngine.EventSystems;
6 
7 namespace HoloToolkit.Unity.InputModule
8 {
13  {
17  public Vector3 PointerPosition { get; private set; }
18  public Vector3 GripPosition { get; private set; }
19 
20  public SourcePositionEventData(EventSystem eventSystem) : base(eventSystem)
21  {
22  }
23 
24  public void Initialize(IInputSource inputSource, uint sourceId, object tag, Vector3 pointerPosition, Vector3 gripPosition)
25  {
26  BaseInitialize(inputSource, sourceId, tag);
27  PointerPosition = pointerPosition;
28  GripPosition = gripPosition;
29  }
30  }
31 }
void Initialize(IInputSource inputSource, uint sourceId, object tag, Vector3 pointerPosition, Vector3 gripPosition)
Describes an input event that a source moving.
Interface for an input source. An input source can be anything that a user can use to interact with a...
Definition: IInputSource.cs:12