“Pygame Zdobądź pozycję myszy” Kod odpowiedzi

Pygame Zdobądź pozycję myszy

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 Mysz 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

Odpowiedzi podobne do “Pygame Zdobądź pozycję myszy”

Pytania podobne do “Pygame Zdobądź pozycję myszy”

Więcej pokrewnych odpowiedzi na “Pygame Zdobądź pozycję myszy” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu