Python Forum
[PyGame] how to use mouse to locate pixel co-ordinates
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] how to use mouse to locate pixel co-ordinates
#5
(Aug-09-2022, 10:51 PM)Windspar Wrote: With pygame events you can do this.
for event in pygame.event.get()
    if event.type == pygame.MOUSEBUTTONDOWN:
        if event.button == 1:
            print(event.pos)

hahaha Windspar - i love your signature !....man that's so funny !
Reply


Messages In This Thread
RE: how to use mouse to locate pixel co-ordinates - by astral_travel - Dec-02-2022, 09:02 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020