schmettow / PfP_Book

Programming for Psychologists - a primer
0 stars 1 forks source link

Point out differences in input handling #11

Open schmettow opened 6 years ago

schmettow commented 6 years ago

Perhaps, start with:

As it will turn out, there is a remarkable difference between interactive prototypes and interactive pygame programs. The latter have a more powerful mechanism called the event handler queue, that continuously monitors incoming events, without explicitly waiting for input, as the prototype does. In the prototype, the program does nothing while waiting for input, it freezes. A Pygame program, events are captured behind the scenes and put into a queue on their own.

schmettow commented 6 years ago

10 suggests to implement a real time event handler for prototypes. That wouls make this issue obsolete.