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.
 
 
 

36 lines
908 B

// -----------------------------------------------------------------------
// <copyright file="RawKeyEventArgs.cs" company="Tricycle">
// Copyright 2014 Tricycle. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Input.Raw
{
public enum RawKeyEventType
{
KeyDown,
KeyUp
}
public class RawKeyEventArgs : RawInputEventArgs
{
public RawKeyEventArgs(
IKeyboardDevice device,
uint timestamp,
RawKeyEventType type,
Key key,
string text)
: base(device, timestamp)
{
this.Key = key;
this.Type = type;
this.Text = text;
}
public Key Key { get; set; }
public string Text { get; set; }
public RawKeyEventType Type { get; set; }
}
}