// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities; using UnityEngine; using UnityEngine.EventSystems; namespace Microsoft.MixedReality.Toolkit.Input { public class HandTrackingInputEventData : InputEventData { /// /// Constructor creates a default EventData object. /// Requires initialization. /// public HandTrackingInputEventData(EventSystem eventSystem) : base(eventSystem) { } public IMixedRealityController Controller { get; set; } /// /// This function is called to fill the HandTrackingIntputEventData object with information /// /// Reference to the HandTrackingInputSource that created the EventData /// Reference to the IMixedRealityController that created the EventData /// Handedness of the HandTrackingInputSource that created the EventData /// Global position of the HandTrackingInputSource that created the EventData public void Initialize(IMixedRealityInputSource inputSource, IMixedRealityController controller, Handedness sourceHandedness, Vector3 touchPoint) { Initialize(inputSource, sourceHandedness, MixedRealityInputAction.None, touchPoint); Controller = controller; } } }