fixing keyboard input
This commit is contained in:
parent
099fca8ceb
commit
9cd001919a
1 changed files with 9 additions and 0 deletions
|
@ -137,7 +137,16 @@ namespace Sledgemapper
|
||||||
_outlineShader = Content.Load<Effect>("shaders/OutlineShader");
|
_outlineShader = Content.Load<Effect>("shaders/OutlineShader");
|
||||||
MyraEnvironment.Game = this;
|
MyraEnvironment.Game = this;
|
||||||
ResetRenderTarget();
|
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);
|
_mainWidget = new MainWidget(_communicationManager, _messenger, Window);
|
||||||
_communicationManager.CheckLogin();
|
_communicationManager.CheckLogin();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue