Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/MonoGame.Framework/TextInputEventArgs.cs
2019-06-25 16:00:44 +03:00

33 lines
820 B
C#

// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System;
using Microsoft.Xna.Framework.Input;
namespace Microsoft.Xna.Framework
{
/// <summary>
/// This class is used for the game window's TextInput event as EventArgs.
/// </summary>
public class TextInputEventArgs : EventArgs
{
char character;
public TextInputEventArgs(char character, Keys key = Keys.None)
{
this.character = character;
this.Key = key;
}
public char Character
{
get
{
return character;
}
}
public Keys Key {
get; private set;
}
}
}