(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user