Fix Ctrl+key event mapping

Closes #8
Closes #7
This commit is contained in:
Raven Szewczyk committed 2023-01-31 09:59:41 +00:00
1 parent ab21c72c38
commit 56e3a91419
3 files changed
+14 -2

No files matched your search

+6 -2
View File
@@ -5,7 +5,9 @@ import org.lwjgl.glfw.GLFW;
public class KeyCodes {
public static int toLwjglKey(int glfwKeyCode) {
if (glfwKeyCode > GLFW.GLFW_KEY_LAST) {
return glfwKeyCode;
}
switch (glfwKeyCode) {
case GLFW.GLFW_KEY_ESCAPE:
return Keyboard.KEY_ESCAPE;
@@ -271,7 +273,9 @@ public class KeyCodes {
}
public static int toGlfwKey(int lwjglKeyCode) {
if (lwjglKeyCode > GLFW.GLFW_KEY_LAST) {
return lwjglKeyCode;
}
switch (lwjglKeyCode) {
case Keyboard.KEY_NONE:
return 0;