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

GetEvent - 1.1

josmiley / Luke spywoker (mutualaccount)

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
Jul 22, 2014

Jul 21, 2014


Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

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