AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
SourceRotationEventData.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 Quaternion PointerRotation { get; private set; }
18  public Quaternion GripRotation { get; private set; }
19 
20  public SourceRotationEventData(EventSystem eventSystem) : base(eventSystem)
21  {
22  }
23 
24  public void Initialize(IInputSource inputSource, uint sourceId, object tag, Quaternion pointerRotation, Quaternion gripRotation)
25  {
26  BaseInitialize(inputSource, sourceId, tag);
27  PointerRotation = pointerRotation;
28  GripRotation = gripRotation;
29  }
30  }
31 }
void Initialize(IInputSource inputSource, uint sourceId, object tag, Quaternion pointerRotation, Quaternion gripRotation)
Interface for an input source. An input source can be anything that a user can use to interact with a...
Definition: IInputSource.cs:12
Describes an input event that involves a source's rotation changing.