pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
770 stars 120 forks source link

pygame.mouse.get_just_pressed()? #2848

Closed RossiGiova closed 1 month ago

RossiGiova commented 1 month ago

Some day ago i was teaching pygame to some of my friends and reading the documentations i have seen that there is pygame.key.get_just_pressed() so, why there is no pygame.mouse.get_just_pressed() ?someone could be able to add this feature? i would be very happy to use

damusss commented 1 month ago

Hello! You might be happy to know I recently implemented exactly what you are asking, the pull request is this one: https://github.com/pygame-community/pygame-ce/pull/2836 . 2 approving reviews will merge it into pygame-ce (probably) 2.5. I'm glad to see there is people who need this.