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

using UnityEngine.EventSystems;

namespace HoloToolkit.Unity.InputModule
{
    /// <summary>
    /// Describes an input event that involves a tap.
    /// </summary>
    public class InputClickedEventData : InputEventData
    {
        /// <summary>
        /// Number of taps that triggered the event.
        /// </summary>
        public int TapCount { get; private set; }

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

        public void Initialize(IInputSource inputSource, uint sourceId, object tag, InteractionSourcePressInfo pressType, int tapCount)
        {
            Initialize(inputSource, sourceId, tag, pressType);
            TapCount = tapCount;
        }
    }
}