AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
GestureResponder.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 
5 using UnityEngine;
6 
7 namespace HoloToolkit.Unity.InputModule.Tests
8 {
9  public class GestureResponder : MonoBehaviour, IInputClickHandler
10  {
11  private void Start()
12  {
13  InputManager.Instance.PushFallbackInputHandler(gameObject);
14  }
15 
16  public void OnInputClicked(InputClickedEventData eventData)
17  {
18  PlaneTargetGroupPicker.Instance.PickNewTarget();
19  }
20  }
21 }
Input Manager is responsible for managing input sources and dispatching relevant events to the approp...
Definition: InputManager.cs:19
void OnInputClicked(InputClickedEventData eventData)
Interface to implement to react to simple click input.
static T Instance
Returns the Singleton instance of the classes type. If no instance is found, then we search for an in...
Definition: Singleton.cs:26
Describes an input event that involves a tap.