Monogame: Enter ? on german keyboard

Created on 30 Aug 2017  路  6Comments  路  Source: MonoGame/MonoGame

Hi all,

first of all: That is a really great framework. But there is one thing I stumbled upon: How am I supposed to type in for example the question mark on a german keyboard?

KeyboardState = Keyboard.GetState(); var pressedKeys = KeyboardState.GetPressedKeys();

...give me nothing when pressed the question mark or other special char buttons on my keyboard. Cannot image I am the only one with such a problem.

But other than that I really need to find a workaround for that. Wasted all day to find sth., even more low-level. How do you accomplish such a task, if you are on a non US keyboard layout?

Most helpful comment

If it is for text input, use the GameWindow.TextInput event. This reports
character input rather than key input. This should work for special
characters as it uses the output from the keyboard driver after modifier
keys have been taken into account.

All 6 comments

Duplicate of #5715

I suppose you want that input for UI stuff, what i did was to use TextInput instead (from Window), sadly MonoGame devs are all US based and don't seems to care about some european input issues :(

Most core contributors are actually not from the US.
I'm from Belgium where most people have an AZERTY keyboard. Of course MG devs care, but we have only so much spare time to go around and there are other issues that have a higher priority. Any help to tackle this issue would be greatly appreciated :)

I tried to find a permanent solution last time but i couldn't figure out what to do, i might try again once i have time, you are right this is an open source project after all

If it is for text input, use the GameWindow.TextInput event. This reports
character input rather than key input. This should work for special
characters as it uses the output from the keyboard driver after modifier
keys have been taken into account.

@KonajuGames Thx buddy. That is a nice workaround, at least for me. Maybe I will dive into monogame source code to eliminate the bug.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rds1983 picture rds1983  路  5Comments

MichaelDePiazzi picture MichaelDePiazzi  路  4Comments

harry-cpp picture harry-cpp  路  5Comments

griseus picture griseus  路  5Comments

monsieurmax picture monsieurmax  路  5Comments