[rcore] KeyboardKey only supports American keyboard
PizzaGame01 opened this issue · comments
I'm using a Europe (German) keyboard.
Its happend in Raylib-cs, but becaus its a port of Raylib i think this problem is still in original Raylib.
If i do this:
if (Raylib.IsKeyDown(KeyboardKey.Z))
{
Console.WriteLine("Called!");
}
Its happen nothing by pressing Z, but if i press Y the if statement is executing.
This problem is also by int key = Raylib.GetKeyPressed();
int key = Raylib.GetKeyPressed();
Console.WriteLine((KeyboardKey)key).ToString());
Clicked: Y
Output: Z
I can agree.
I think this is behavior intended. See #2822
@PizzaGame01 I'm afraid there is not an easy solution to this problem, the keyboard mapping should be managed at GLFW, that raylib uses or at user side. Do you know of another possible solution?
If anyone finds this issue and knows of a simple multi-platform solution to address it, please, comment
@PizzaGame01 I'm afraid there is not an easy solution to this problem, the keyboard mapping should be managed at GLFW, that raylib uses or at user side. Do you know of another possible solution?
has SDL 2 the same problem?