[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Creating unique userevent ids?



I'm gradually building up a small collection of modules that enhance
pygame with new input devices (wiimote, webcam). The modules generate
new events so I've been doing things like pygame.USEREVENT+1. But this
is guaranteed to get me into trouble when using multiple independent
extensions.

Is there some way to assure I've got a unique id? wxPython has NewId for
this purpose.

Thanks
Gary Bishop