@Override
    public void destroy() {

        if (!context.isRenderable()) {
            return;
        }

        closeCallbacks();

        currentCursor = null;
        currentCursorDelays = null;

        for (long[] glfwCursors : jmeToGlfwCursorMap.values()) {
            for (long glfwCursor : glfwCursors) {
                glfwDestroyCursor(glfwCursor);
            }
        }

        jmeToGlfwCursorMap.clear();

        logger.fine("Mouse destroyed.");
    }
Send the input listener a special mouse-motion event with zero deltas in
order to initialize the listener's cursor position.
jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwMouseInput.java