Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/MonoGame.Framework/TextInput.cs
Markus Isberg 9d2f160314 Build 0.20.10.0
2022-12-05 19:48:59 +02:00

35 lines
776 B
C#

#nullable enable
namespace Microsoft.Xna.Framework
{
public static class TextInput
{
public static bool IsTextInputShown()
{
return Sdl.SDL_IsTextInputShown();
}
public static void StartTextInput()
{
Sdl.SDL_StartTextInput();
}
public static void StopTextInput()
{
Sdl.SDL_StopTextInput();
}
public static void SetTextInputRect(Rectangle rectangle)
{
Sdl.Rectangle r = new Sdl.Rectangle
{
X = rectangle.X,
Y = rectangle.Y,
Width = rectangle.Width,
Height = rectangle.Height
};
Sdl.SDL_SetTextInputRect(ref r);
}
}
}