public static void arrowUp(Window window) { if (arrowUp == 0) arrowUp = loadResource("arrowUp.jpg"); Log.log("cursors", () -> "setting to arrow"); if (currentCursor != arrowUp) Glfw.glfwSetCursor(window.getGLFWWindowReference(), currentCursor = arrowUp); }
public static void clear(Window window) { if (currentCursor != 0) Glfw.glfwSetCursor(window.getGLFWWindowReference(), currentCursor = 0); }