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

InputParser - 0.7.0

Wil Alvarez (satanas666)

Tags:

Description

Input class allows you to control standard input events keyboard, mouse or joystick) on a PyGame application, binding user-defined actions for each one of them. You just need to create an input object, bind actions with input events and lookup for this action on every loop of the application. It comes with a very cool documentation made by me :D

Changes

+ Added support for documentation in pydoc format + Added support UP and DOWN events for keys and joystick buttons + Improved support for mouse move and quit events + Changed format to complaint with python standard (indentation, underscore separation for method name, etc) + Implemented mouse down/up events + Added support for QUIT event

Links

Home Page: http://inputparser.googlecode.com/
Source: http://inputparser.googlecode.com/files/

Releases

InputParser - 0.7.0 - Nov 20, 2008
InputParser - 0.6.5 - Feb 26, 2008
InputParser - 0.6.2 - Feb 26, 2008
InputParser - 0.6.1 - Feb 11, 2008

Pygame.org account Comments

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

February 26, 2008 12:28pm - Wil Alvarez - nickname: (satanas666)
Done! Here are the changes:
-Fixed joystick support
-Added setSensitivity
-Added lookupAny for check any key (or joystick button) pressed
February 26, 2008 10:15am - Wil Alvarez - nickname: (satanas666)
Doing some tests i've realized that still remain a bug with analog sticks of joystick. I'll try to fix it
February 26, 2008 8:19am - Wil Alvarez - nickname: (satanas666)
Well fixed joystick support. For GNU/Linux users install "joystick" package (it comes with jscal and jstest) to calibrate joystick.

To calibrate run: jscal -c /dev/input/js0
To test run: jstest /dev/input/js0

That's all. It should work pretty well. Cheers
February 11, 2008 10:35am - pymike - nickname: (pymike) - 5/5
Way cool! I think I might use this for a game I'm making. Really useful script. Good job!
February 11, 2008 8:07am - Wil Alvarez - nickname: (satanas666)
Well, first public release. Feedback is welcome!
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 28, 2014

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)