Build 0.20.10.0

This commit is contained in:
Markus Isberg
2022-12-05 19:48:59 +02:00
parent 31d2dc658e
commit 9d2f160314
55 changed files with 335 additions and 3511 deletions
@@ -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));