mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace Artemis.Core.Services
|
|
{
|
|
/// <summary>
|
|
/// Contains data for input provider keyboard events
|
|
/// </summary>
|
|
public class InputProviderKeyboardEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// </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, InputKey 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 InputKey Key { get; }
|
|
|
|
/// <summary>
|
|
/// Gets whether the key is pressed down
|
|
/// </summary>
|
|
public bool IsDown { get; }
|
|
}
|
|
} |