// ReSharper disable MemberCanBePrivate.Global
using CUE.NET.Devices.Generic.Enums;
namespace CUE.NET.EventArgs
{
///
/// Represents the data provided by the -event.
///
public class KeyPressedEventArgs : System.EventArgs
{
#region Properties & Fields
///
/// Gets the id of the key.
///
public CorsairKeyId KeyId { get; }
///
/// Gets the current status of the key (true = pressed, flase = released).
///
public bool IsPressed { get; }
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The id of the key.
/// The current status of the key (true = pressed, flase = released).
public KeyPressedEventArgs(CorsairKeyId keyId, bool isPressed)
{
this.KeyId = keyId;
this.IsPressed = isPressed;
}
#endregion
}
}