Fix modifier keys having assigned characters

Closes #10
This commit is contained in:
Raven Szewczyk committed 2023-02-01 12:53:51 +00:00
1 parent 55ecacf6b8
commit 0786ab5d27
1 file changed
+2 -1
+2 -1
View File
@@ -219,8 +219,9 @@ public class Keyboard {
keyMap.put(keyName[i], i);
}
for (int key = 32; key < 128; key++) {
keyEventChars[key] = (char) key;
keyEventChars[KeyCodes.toLwjglKey(key)] = (char) key;
}
keyEventChars[KEY_NONE] = '\0';
}
public static void addGlfwKeyEvent(long window, int key, int scancode, int action, int mods) {