Skip to content

Support different keyboard layout #91

Description

@vfrz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions