You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Roman Shapiro edited this page Dec 7, 2019
·
2 revisions
By default Myra translates Keys to chars in the TextBox widget, which basically limits accepted chars to ASCII only.
Add following code to the Game.LoadContent to make Myra accept any chars by utilizing MonoGame TextInput:
// Inform Myra that external text input is available// So it stops translating Keys to charsDesktop.HasExternalTextInput=true;// Provide that text inputWindow.TextInput+=(s,a)=>{Desktop.OnChar(a.Character);};