A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
678 B

namespace Avalonia.Input.Raw
{
public enum RawKeyEventType
{
KeyDown,
KeyUp
}
public class RawKeyEventArgs : RawInputEventArgs
{
public RawKeyEventArgs(
IKeyboardDevice device,
ulong timestamp,
IInputRoot root,
RawKeyEventType type,
Key key, RawInputModifiers modifiers)
: base(device, timestamp, root)
{
Key = key;
Type = type;
Modifiers = modifiers;
}
public Key Key { get; set; }
public RawInputModifiers Modifiers { get; set; }
public RawKeyEventType Type { get; set; }
}
}