From 07b72b410faa28a2a707c4b6d77edef09f9d4492 Mon Sep 17 00:00:00 2001 From: artdeell Date: Sun, 3 Jan 2021 19:04:49 +0300 Subject: [PATCH] Add some GLFW stubs --- .../src/main/java/org/lwjgl/glfw/GLFW.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java index 84c1f8048..7d16e1e48 100644 --- a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java +++ b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java @@ -1247,4 +1247,27 @@ public class GLFW public static ByteBuffer glfwGetjoystickHats(int jid) { return null; } + public static boolean glfwJoystickIsGamepad(int jid) { + if(jid == 0) return true; + else return false; + } + public static String glfwGetJoystickGUID(int jid) { + if(jid == 0) return "aio0"; + else return null; + } + public static long glfwGetJoystickUserPointer(int jid) { + return 0; + } + public static void glfwSetJoystickUserPointer(int jid, long pointer) { + + } + public static boolean glfwUpdateGamepadMappings(ByteBuffer string) { +return false; + } + public static String glfwGetGamepadName(int jid) { + return null; + } + public static boolean glfwGetGamepadState(int jid, GLFWGamepadState state) { + return false; + } }