16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 07:59:18 +02:00

post-merge fixes, continued

This commit is contained in:
tmj-fstate
2017-03-07 14:29:03 +01:00
parent 32c554f6b8
commit 2f3e916d9e
5 changed files with 25 additions and 24 deletions

View File

@@ -67,7 +67,7 @@ int vk_to_glfw_key( int const Keycode ) {
if( (key >= 'A') && (key <= 'Z') ) {
key = GLFW_KEY_A + key - 'A';
}
else if( key >= '0' ) {
else if( ( key >= '0' ) && ( key <= '9' ) ) {
key = GLFW_KEY_0 + key - '0';
}
return key + ( shiftstate << 8 );