Skip to main content

This is a wrapper class to simplify control handling in pygame when using multiple controller methods.


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:
  ship.x += input.GetControl('THRUST')
  ship.y += input.GetControl('CLIMB')
  if input.GetControl('FIRE')
  if input.GetControl('QUIT'):
    running = False


Home Page

Releases 1.0 — 5 Jun, 2011 account Comments

  • Bee Nine 2013-04-05 18:11:26

    Nice! I'm looking forward to trying this out.