Build 0.20.10.0
This commit is contained in:
@@ -111,6 +111,11 @@ namespace Microsoft.Xna.Framework {
|
||||
/// Used for displaying uncommitted IME text.
|
||||
/// </summary>
|
||||
public event EventHandler<TextEditingEventArgs> TextEditing;
|
||||
|
||||
/// <summary>
|
||||
/// Used for when a key is pressed, including modifiers.
|
||||
/// </summary>
|
||||
public event EventHandler<TextInputEventArgs> KeyDown;
|
||||
#endif
|
||||
|
||||
#endregion Events
|
||||
@@ -158,6 +163,11 @@ namespace Microsoft.Xna.Framework {
|
||||
EventHelpers.Raise(this, TextInput, e);
|
||||
}
|
||||
|
||||
protected void OnKeyDown(object sender, TextInputEventArgs e)
|
||||
{
|
||||
EventHelpers.Raise(this, KeyDown, e);
|
||||
}
|
||||
|
||||
protected void OnTextEditing(object sender, TextEditingEventArgs e)
|
||||
{
|
||||
EventHelpers.Raise(this, TextEditing, e);
|
||||
|
||||
Reference in New Issue
Block a user