Recently I started coding a simple Game Engine in Python, but for some reason I couldn't remember how to get Pygame to recognize you clicked on a certain area. No sample code (sorry) but I was wondering if anybody knew how to make it so Pygame will recognize that the user has clicked on certain x y coordinates.


Actually most I know have code that fires on click, get the coords with pygame.mouse.get_pos() and then you can do what you will with that info.