@Override
    public void onMouseMotionEvent(MouseMotionEvent evt) {
        /*
         * If events aren't allowed, the event may be a "first mouse event"
         * triggered by the constructor setting the mouse listener.
         * In that case, use the event to initialize the cursor position,
         * but don't queue it for further processing.
         * This is part of the fix for issue #792.
         */
        cursorPos.set(evt.getX(), evt.getY());
        if (eventsPermitted) {
            inputQueue.add(evt);
        }
    }
Callback from RawInputListener. Do not use.

@param evt event to add to the input queue (not null)
jme3-core/src/main/java/com/jme3/input/InputManager.java