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.
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.