AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
ScrollSessionListButton.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 using UnityEngine;
5 
6 namespace HoloToolkit.Unity.SharingWithUNET
7 {
11  public class ScrollSessionListButton : MonoBehaviour, IInputClickHandler
12  {
13 
17  public int Direction;
18 
23  public void OnInputClicked(InputClickedEventData eventData)
24  {
25  ScrollingSessionListUIController.Instance.ScrollSessions(Direction);
26  eventData.Use();
27  }
28  }
29 }
int Direction
Whether we are scrolling up (-1) in the list or down (1) in the list
void OnInputClicked(InputClickedEventData eventData)
Called when the user clicks the control
Attached to the 'up' and 'down' arrows in the scroll control
Interface to implement to react to simple click input.
Describes an input event that involves a tap.