pygame is
pygame.org is
|
GetEvent
GetEvent - 1.1josmiley (josmiley)Tags:DescriptionGetEvent is a lib that I wrote for another project
it allows you to filter mouse events to detect clicks
the default timebase is 100 ms, but you can set this value in GetEvent.LAPS
the clicks are retrieved via the MOUSEBUTTONUP event and the 'click' keyword, that is a list of 6 entries: [button number, button1 clicks, button2 clicks, ...]
it is used as in the event module, look in example.py.so you can detect the real (multiple) clicks, not just single buttonup. ChangesAdding the key "inactiv" in NONEVENT that returns the elapsed time without events
see example.py Links
ScreenshotReleases
Pygame.org account CommentsIf you wish to leave a comment with your pygame.org account, please sign in first.
|
|