mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 21:16:24 +00:00
Added an event to get the key-change of special keys (G and M)
This commit is contained in:
1 parent
c4ac6f0e40
commit
5091b33864
8 files changed
+198
No files matched your search
@@ -0,0 +1,41 @@
|
||||
// ReSharper disable MemberCanBePrivate.Global
|
||||
|
||||
using CUE.NET.Devices.Generic.Enums;
|
||||
|
||||
namespace CUE.NET.EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the data provided by the <see cref="CueSDK.KeyPressed"/>-event.
|
||||
/// </summary>
|
||||
public class KeyPressedEventArgs : System.EventArgs
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id of the key.
|
||||
/// </summary>
|
||||
public CorsairKeyId KeyId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current status of the key (true = pressed, flase = released).
|
||||
/// </summary>
|
||||
public bool IsPressed { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="KeyPressedEventArgs"/> class.
|
||||
/// </summary>
|
||||
/// <param name="keyId">The id of the key.</param>
|
||||
/// <param name="isPressed">The current status of the key (true = pressed, flase = released).</param>
|
||||
public KeyPressedEventArgs(CorsairKeyId keyId, bool isPressed)
|
||||
{
|
||||
this.KeyId = keyId;
|
||||
this.IsPressed = isPressed;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user