// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using System;
namespace UltimateXR.UI.Helpers.Keyboard
{
///
/// Key press/release event parameters.
///
public class UxrKeyboardKeyEventArgs : EventArgs
{
#region Public Types & Data
///
/// Gets the key that was pressed/released.
///
public UxrKeyboardKeyUI Key { get; }
///
/// Gets whether it was a press (true) or release (false).
///
public bool IsPress { get; }
///
/// Gets the current line content. If it was a keypress event and the the keypress was the ENTER key then the line
/// before pressing ENTER is passed.
///
public string Line { get; }
#endregion
#region Constructors & Finalizer
///
/// Constructor.
///
/// Key that was pressed
/// Is it a press or a release?
/// Current line
public UxrKeyboardKeyEventArgs(UxrKeyboardKeyUI key, bool isPress, string line)
{
Key = key;
IsPress = isPress;
Line = line;
}
#endregion
}
}