Sections
Personal tools
You are here: Home » Faculty and Staff » Hale, Walker » November 1 » Reading Keyboard Events
 

Reading Keyboard Events

What you need to know about keyboard events in Pygame
I found a recipe that describes reading keyboard events:

http://gpwiki.org/index.php/Python:Pygame_keyboard_input

The key codes are documented here:

http://www.pygame.org/docs/ref/key.html

The key codes you care about are: K_UP, K_DOWN, K_RIGHT, K_LEFT.

Added by walker.hale
Last modified 2006-11-02 02:42 PM