private void onMouseButton(final long window, final int button, final int action, final int mods) {
        final MouseButtonEvent mouseButtonEvent = new MouseButtonEvent(convertButton(button), action == GLFW_PRESS, mouseX, mouseY);
        mouseButtonEvent.setTime(getInputTimeNanos());
        mouseButtonEvents.add(mouseButtonEvent);
    }
Create a new mouse input attached to the given {@link LwjglWindowVR context}.
@param context the context to which to attach the input.
jme3-vr/src/main/java/com/jme3/input/lwjgl/GlfwMouseInputVR.java