// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using System;
using UltimateXR.Core;
using UnityEngine;
namespace UltimateXR.Devices
{
///
/// Stores information of a input event.
///
public sealed class UxrInput2DEventArgs : EventArgs
{
#region Public Types & Data
///
/// Gets which hand performed the input.
///
public UxrHandSide HandSide { get; }
///
/// Gets the input target.
///
public UxrInput2D Target { get; }
///
/// Gets the new input value.
///
public Vector2 Value { get; }
#endregion
#region Constructors & Finalizer
///
/// Constructor.
///
/// Target hand
/// Input target
/// New input value
public UxrInput2DEventArgs(UxrHandSide handSide, UxrInput2D target, Vector2 newValue)
{
HandSide = handSide;
Target = target;
Value = newValue;
}
#endregion
}
}