Pygame mouse and keyboard listening / Threading help needed

Hi

If I put my keyboard listening in pygame in my drawing/game loop, it obviously won't be checked constantly.
I must obviously have a Thread listening for keyboard input, mouse movement to play my game and update internal game variables.


Is this just a new class I must make with two methods each to listen to pygame keyboard/mouse activity. Case closed?


Thanks
beavoidAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
All Courses

From novice to tech pro — start learning today.