On 26/04/2007, at 7:45 AM, Luke Paireepinart wrote:
Dave LeCompte (really) wrote:René Dudfield <renesd@xxxxxxxxx> suggested:
For pygame integration posting events into the event queue would be a
good idea ( pygame.event.post ). Maybe run in another thread, or
polled at the required frequency with pygame.time.set_timer ?
I'd suggest not creating another thread if we don't absolutely need to.
Does anyone know how the mouse works in Pygame? how is it polled? I'd think the wiimote should be done in a similar manner.
Are you assuming that the user calls pump, or does pygame have some internal thread that consistently calls pump?
I haven't dug around very much inside the code, so I don't know how it
looks in there, but it seems like the pygame.event.pump code is already
doing periodic input work,
or does pygame.event.get call pump as well?
Cheers and good luck Alex.