You can get some of this info from the text that pops up in the console when you run a pygame program. Ordinarily, pygame detects mouse-clicks inside a window just fine. However, if the user clicks on ...
pygame.event.get(): This crucial Pygame function retrieves all events that have occurred since the last time it was called. It returns these events as a list of ...