mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-27 23:45:50 +00:00
Adjustments needed to get Angelica (Iris/Oculus backport) working (#88)
* WIP Adjustments needed to get Angelica (Iris/Oculus backport) working * Move to GL20 * Hacky lwjglx.debug support since its transformer doesn't like lwjgl3ify's init call * Don't submit invalid keycodes * Add missing glTextureParameter * Update buildscript * Better setupDebugMessageCallback. * Fix up the isKeyDown patch * Better glGetActiveUniform sizetype impl * Clean up the debug handler code * Update the buildscript --------- Co-authored-by: Raven Szewczyk <[email protected]>
This commit is contained in:
1 parent
f5906d082e
commit
f8c4a5e330
14 files changed
+336
-18
No files matched your search
@@ -1,6 +1,5 @@
|
||||
package org.lwjglx.input;
|
||||
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.HashMap;
|
||||
@@ -257,7 +256,11 @@ public class Keyboard {
|
||||
public static void create() throws LWJGLException {}
|
||||
|
||||
public static boolean isKeyDown(int key) {
|
||||
return GLFW.glfwGetKey(Display.getWindow(), KeyCodes.lwjglToGlfw(key)) == GLFW.GLFW_PRESS;
|
||||
if (key == KEY_NONE) {
|
||||
return false;
|
||||
}
|
||||
final int keyCode = KeyCodes.lwjglToGlfw(key);
|
||||
return GLFW.glfwGetKey(Display.getWindow(), keyCode) == GLFW.GLFW_PRESS;
|
||||
}
|
||||
|
||||
public static void poll() {
|
||||
|
||||
Reference in new issue
Block a user