Keys
index
/home/gerrit/cvs/brian/Keys.py

#/usr/bin/python -tt

 
Modules
       
pygame

 
Classes
       
__builtin__.object
Keys

 
class Keys(__builtin__.object)
    Handles user input.
 
All keys as listed in the Pygame manual are attributes, with the K_
stripped off. Further, the synonyms as passed into the constructor
are synonyms. Finally, the move attribute is a tuple (x, y) constructed
from the various movement keys.
 
  Methods defined here:
__getattr__ = getkey(self, key)
__init__(self, *synonyms)
The arguments are dictionaries containing key synonyms.
anybut(self, *keys)
Returns False if, and only if, all pressed keys are arguments
getkey(self, key)
getkeynum(self, key)

Properties defined here:
move
(x, y) tuple with coordinates to move.
get = get(self)
pressed
Dictionairy with all pressed keys.
get = get(self)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Keys' objects>
list of weak references to the object (if defined)