pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
input.py

input.py - 1.0

Beerman (beerman)

Tags:

Description

Rather than your game logic having to deal with all the controllers directly, it allows you to define named controls which can map to multiple controllers at once.

Simple example:

input = Input()
while running:
  input.Poll()
 
  ship.x += input.GetControl('THRUST')
  ship.y += input.GetControl('CLIMB')
  if input.GetControl('FIRE')
    ship.fire()
 
  if input.GetControl('QUIT'):
    running = False
 
  render()

Links

Home Page: http://www.beercave.co.uk/content/inputpy
Source: http://www.beercave.co.uk/content/inputpy

Releases

input.py - 1.0 - Jun 5, 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
Oct 20, 2014

Oct 16, 2014

Oct 9, 2014

Oct 8, 2014

Oct 7, 2014

Oct 4, 2014

Oct 1, 2014

Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

Sep 8, 2014

Sep 7, 2014

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