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