def toggle_exclusivity(self,override=None):
        """
        Toggles mouse exclusivity via pyglet's :py:meth:`set_exclusive_mouse()` method.
        
        If ``override`` is given, it will be used instead.
        
        You may also read the current exclusivity state via :py:attr:`exclusive`\ .
        """
        if override is not None:
            new = override
        else:
            new = not self.exclusive
        self.exclusive = new
        self.set_exclusive_mouse(self.exclusive)
        self.peng.sendEvent("peng3d:window.toggle_exclusive",{"peng":self.peng,"window":self,"exclusive":self.exclusive})
Toggles mouse exclusivity via pyglet's :py:meth:`set_exclusive_mouse()` method.
        
        If ``override`` is given, it will be used instead.
        
        You may also read the current exclusivity state via :py:attr:`exclusive`\ .