0

For example, I have a 50 by 50 rectangle and I want to make it so when I press on it with my left mouse key, the program logs or senses that this has happened.

John Kugelman
  • 349,597
  • 67
  • 533
  • 578

1 Answers1

0

There are two ways you can go about this either:

Or

You can check here for a general list of functions for getting the current state of the cursor/mouse: https://www.pygame.org/docs/ref/mouse.html