I am using GLFW for the input in my game. I just started learning it and I have encountered a problem. The problem is the input, I have a callback function, where I check for keypresses. I want the program to toggle wireframe mode when the user press 1, therefore I have this code:
if(key == '1' && action == GLFW_PRESS)
{
wireframe = !wireframe;
}
The problem is that I am Czech and we obviously have different keyboard layout - I use english keyboard layout for programming and when I press 1 it works, however, when I press the same key on czech layout it doesn't work, probably because we have to press Shift along with the '1' key to actually get the 1 on the screen. It may seem obvious that it does not work, but when I used SFML it worked.
I also tried replacing the '1' with 49 or 0x0031, but the result is the same.
Is there a solution or do I have to set the layout manually by the system API?
Thanks in advance.