Build 0.20.10.0
This commit is contained in:
@@ -117,7 +117,8 @@ namespace Microsoft.Xna.Framework
|
||||
* By default SDL2 will hide IME popups since it probably assumes the game will implement their own suggestions box.
|
||||
* We don't want that, so this hint will allow the system native IME popups to show up when typing in the game.
|
||||
*/
|
||||
Sdl.SetHint("SDL_HINT_IME_SHOW_UI", "1");
|
||||
Sdl.SetHint("SDL_IME_SHOW_UI", "1");
|
||||
Sdl.SetHint("SDL_IME_SUPPORT_EXTENDED_TEXT", "1");
|
||||
|
||||
// when running NUnit tests entry assembly can be null
|
||||
if (Assembly.GetEntryAssembly() != null)
|
||||
@@ -339,6 +340,11 @@ namespace Microsoft.Xna.Framework
|
||||
OnTextInput(this, new TextInputEventArgs(c, key));
|
||||
}
|
||||
|
||||
public void CallKeyDown(char c, Keys key = Keys.None)
|
||||
{
|
||||
OnKeyDown(this, new TextInputEventArgs(c, key));
|
||||
}
|
||||
|
||||
public void CallTextEditing(string text, int start, int length)
|
||||
{
|
||||
OnTextEditing(this, new TextEditingEventArgs(text, start, length));
|
||||
|
||||
Reference in New Issue
Block a user