Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support different keyboard layout #91

Open
vfrz opened this issue Aug 25, 2018 · 2 comments
Open

Support different keyboard layout #91

vfrz opened this issue Aug 25, 2018 · 2 comments

Comments

@vfrz
Copy link

vfrz commented Aug 25, 2018

Currently, GeonBit.UI supports only the american qwerty keyboard layout.
The pressed key is translated to a char using some dirty "if" , I think this is not a viable solution, especially if we want to support multiple keyboard in our game.

The best option I found is to use the TextInput event on GameWindow class from MonoGame : https://github.com/MonoGame/MonoGame/blob/master/MonoGame.Framework/GameWindow.cs

Arrow keys, backspace still need to be handled with the current method.

I have done a fork, I'll try to make these changes and make a PR, but it's not that easy. I first need to understand how the InputHelper class work.

@SerialKicked
Copy link

SerialKicked commented Aug 27, 2018

Handling your whole game's input system through this small helper class is a bit out of its scope, especially as both Monogame and c# already have pretty comprehensive methods in place for that purpose.

(just my 2 cents, not the developer).

@vfrz
Copy link
Author

vfrz commented Aug 28, 2018

You are totally right. I forgot to mention that I was talking only about the TextInput control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants