Newer
Older
HoloAnatomy / Assets / HoloToolkit / Input / Scripts / InputEventData / GamePadEventData.cs
SURFACEBOOK2\jackwynne on 25 May 2018 704 bytes v1
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System;
using UnityEngine.EventSystems;

namespace HoloToolkit.Unity.InputModule
{
    [Obsolete("Use SourceEventData")]
    public class GamePadEventData : InputEventData
    {
        public string GamePadName { get; private set; }

        public GamePadEventData(EventSystem eventSystem) : base(eventSystem) { }

        public void Initialize(IInputSource source, uint sourceId, string gamePadName, object tag = null)
        {
            BaseInitialize(source, sourceId, tag);
            GamePadName = gamePadName;
        }
    }
}