()
Get mouse event.

        Args:
            None

        Raises:
            None

        Returns:
            x (int): X - mouse position
            y (int): y - mouse position
Get mouse event.
Get mouse event .
def get_mouse_event():
        """Get mouse event.

        Args:
            None

        Raises:
            None

        Returns:
            x (int): X - mouse position
            y (int): y - mouse position
        """
        with open("/dev/input/mice", "rb") as fh:
            buf = fh.read(3)
            x, y = struct.unpack("bb", buf[1:])
            return x, y
def get_mouse_event ( ) : with open ( "/dev/input/mice" , "rb" ) as fh : buf = fh . read ( 3 ) x , y = struct . unpack ( "bb" , buf [ 1 : ] ) return x , y