AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
GamePadEventData.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.EventSystems;
6 
7 namespace HoloToolkit.Unity.InputModule
8 {
9  [Obsolete("Use SourceEventData")]
11  {
12  public string GamePadName { get; private set; }
13 
14  public GamePadEventData(EventSystem eventSystem) : base(eventSystem) { }
15 
16  public void Initialize(IInputSource source, uint sourceId, string gamePadName, object tag = null)
17  {
18  BaseInitialize(source, sourceId, tag);
19  GamePadName = gamePadName;
20  }
21  }
22 }
void Initialize(IInputSource source, uint sourceId, string gamePadName, object tag=null)
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.