Compare commits

...

2 Commits

Author SHA1 Message Date
Michele Scandura
fe886315a1 Merge branch 'campaign' of https://git.michelescandura.com/michele/sledgemapper into campaign
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-24 16:54:51 +01:00
Michele Scandura
9cd001919a fixing keyboard input 2021-09-24 16:54:44 +01:00

View File

@ -137,7 +137,16 @@ namespace Sledgemapper
_outlineShader = Content.Load<Effect>("shaders/OutlineShader");
MyraEnvironment.Game = this;
ResetRenderTarget();
// Inform Myra that external text input is available
// So it stops translating Keys to chars
_desktop.HasExternalTextInput = true;
// Provide that text input
Window.TextInput += (s, a) =>
{
_desktop.OnChar(a.Character);
};
_mainWidget = new MainWidget(_communicationManager, _messenger, Window);
_communicationManager.CheckLogin();