parameters: ()
docstring: Get mouse event.
  
          Args:
              None
  
          Raises:
              None
  
          Returns:
              x (int): X - mouse position
              y (int): y - mouse position
docstring_summary: Get mouse event.
docstring_tokens: Get mouse event .
function: 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
function_tokens: 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