AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
NavigationEventData.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 System;
5 using UnityEngine;
6 using UnityEngine.EventSystems;
7 
8 namespace HoloToolkit.Unity.InputModule
9 {
14  {
19  [Obsolete("Use NormalizedOffset")]
20  public Vector3 CumulativeDelta { get { return NormalizedOffset; } }
21 
26  public Vector3 NormalizedOffset { get; private set; }
27 
28  public NavigationEventData(EventSystem eventSystem) : base(eventSystem)
29  {
30  }
31 
32  public void Initialize(IInputSource inputSource, uint sourceId, object tag, Vector3 normalizedOffset)
33  {
34  BaseInitialize(inputSource, sourceId, tag);
35  NormalizedOffset = normalizedOffset;
36  }
37  }
38 }
void Initialize(IInputSource inputSource, uint sourceId, object tag, Vector3 normalizedOffset)
Describes an input event that involves content navigation.
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 has a source id and a press kind.