pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
GetEvent

GetEvent - 1.1

josmiley (josmiley)

Tags:

Description

GetEvent 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.

Changes

Adding the key "inactiv" in NONEVENT that returns the elapsed time without events

 

see example.py

Links

Home Page: http://joel-murielle.perso.sfr.fr/
Source: http://joel-murielle.perso.sfr.fr/GetEvent.zip

Screenshot


click to view original size

Releases

GetEvent - 1.2 - Apr 22, 2012
GetEvent - 1.1 - Apr 21, 2012
GetEvent - 1 - Apr 1, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

No user comments have been submitted.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Apr 25, 2014

Apr 21, 2014


Apr 19, 2014

Apr 16, 2014

Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014

Mar 14, 2014

Mar 13, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)