def _compose_mouse_event(self, name, press=True, release=False):

        mouse_event = 0
        if name == self.LEFT_BUTTON:
            if press:
                mouse_event += self._MOUSEEVENTF_LEFTDOWN
            if release:
                mouse_event += self._MOUSEEVENTF_LEFTUP
        if name == self.RIGHT_BUTTON:
            if press:
                mouse_event += self._MOUSEEVENTF_RIGHTDOWN
            if release:
                mouse_event += self._MOUSEEVENTF_RIGHTUP

        return mouse_event
Composes mouse event based on button name and action flags.
dataset/ETHPy150Open F1ashhimself/UISoup/uisoup/win_soup/mouse.py/WinMouse._compose_mouse_event