“Pygame obtenga la posición del mouse” Código de respuesta

Pygame obtenga la posición del mouse

x,y = pygame.mouse.get_pos()
#get the mouse cursor position
#get_pos() -> (x, y)
#Returns the X and Y position of the mouse cursor.
#The position is relative to the top-left corner of the display.
#The cursor position can be located outside of the display window,
#but is always constrained to the screen.
8Dion8

Pygame mouse pos

 pygame.mouse.get_pos()
    get the mouse cursor position
    get_pos() -> (x, y)

    Returns the x and y position of the mouse cursor. 
    The position is relative to the top-left corner of the display. 
    The cursor position can be located outside of the display window,
    but is always constrained to the screen.
Bad Bat

Respuestas similares a “Pygame obtenga la posición del mouse”

Preguntas similares a “Pygame obtenga la posición del mouse”

Más respuestas relacionadas con “Pygame obtenga la posición del mouse” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código