1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Artemis/src/Artemis.Core/Services/Input/Events/InputProviderKeyboardEventArgs.cs

38 lines
1.2 KiB
C#

using System;
namespace Artemis.Core.Services
{
/// <summary>
/// Contains data for input provider keyboard events
/// </summary>
public class InputProviderKeyboardEventArgs : EventArgs
{
/// <summary>
/// Creates a new instance of the <see cref="InputProviderKeyboardEventArgs " /> class
/// </summary>
/// <param name="device">The device that triggered the event</param>
/// <param name="key">The key that triggered the event</param>
/// <param name="isDown">Whether the key is pressed down</param>
public InputProviderKeyboardEventArgs(ArtemisDevice? device, KeyboardKey key, bool isDown)
{
Device = device;
Key = key;
IsDown = isDown;
}
/// <summary>
/// Gets the device that triggered the event
/// </summary>
public ArtemisDevice? Device { get; }
/// <summary>
/// Gets the key that triggered the event
/// </summary>
public KeyboardKey Key { get; }
/// <summary>
/// Gets whether the key is pressed down
/// </summary>
public bool IsDown { get; }
}
}