private void initCurrentMousePosition(long window) {
        double[] x = new double[1];
        double[] y = new double[1];
        glfwGetCursorPos(window, x, y);
        context.getWindowContentScale(inputScale);
        mouseX = (int) Math.round(x[0] * inputScale.x);
        mouseY = (int) Math.round((currentHeight - y[0]) * inputScale.y);     
    }
Re-initializes the mouse input context window specific callbacks
jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwMouseInput.java