Mouse event callback from glfw.
        Translates the events forwarding them to :py:func:`cursor_event`.

        Args:
            window: The window
            xpos: viewport x pos
            ypos: viewport y pos

def mouse_event_callback(self, window, xpos, ypos):
        """
        Mouse event callback from glfw.
        Translates the events forwarding them to :py:func:`cursor_event`.

        Args:
            window: The window
            xpos: viewport x pos
            ypos: viewport y pos
        """
        # screen coordinates relative to the top-left corner
        self.example.mouse_position_event(xpos, ypos)