mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
This reverts commit be217ffc02e793d44a031aace51a92ee15d87b40, reversing changes made to 524296e4e9891a1c4ccedd5f0dcfcbe54b0c8006.
37 lines
948 B
C#
37 lines
948 B
C#
using System;
|
|
|
|
namespace Artemis.Core.Services;
|
|
|
|
/// <summary>
|
|
/// Contains data for keyboard input events
|
|
/// </summary>
|
|
public class ArtemisKeyboardKeyEventArgs : EventArgs
|
|
{
|
|
internal ArtemisKeyboardKeyEventArgs(ArtemisDevice? device, ArtemisLed? led, KeyboardKey key, KeyboardModifierKey modifiers)
|
|
{
|
|
Device = device;
|
|
Led = led;
|
|
Key = key;
|
|
Modifiers = modifiers;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the device that triggered the event
|
|
/// </summary>
|
|
public ArtemisDevice? Device { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the LED that corresponds to the pressed key
|
|
/// </summary>
|
|
public ArtemisLed? Led { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the key that triggered the event
|
|
/// </summary>
|
|
public KeyboardKey Key { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the modifiers that are pressed
|
|
/// </summary>
|
|
public KeyboardModifierKey Modifiers { get; }
|
|
} |