Fixed a bug where the instance was not properly set

This commit is contained in:
Tefek 2020-09-25 13:06:05 +02:00
parent c7c11d04b1
commit 1974437c4e
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ public class InputBus
GLFW.glfwSetCursorPosCallback(display.getWindowPointer(), instance.cursorPosition); GLFW.glfwSetCursorPosCallback(display.getWindowPointer(), instance.cursorPosition);
GLFW.glfwSetScrollCallback(display.getWindowPointer(), instance.scroll); GLFW.glfwSetScrollCallback(display.getWindowPointer(), instance.scroll);
GLFW.glfwSetCharCallback(display.getWindowPointer(), instance.charInput); GLFW.glfwSetCharCallback(display.getWindowPointer(), instance.charInput);
INSTANCE.set(instance);
} }
public static void destroy() public static void destroy()