PyGame Logo
PyGame
Documentation
||  Home  ||  Help Contents  ||
 
|| CD || Channel || Font || Joystick || Rect ||
|| Sound || Surface || pygame || cdrom || display ||
|| event || font || image || joystick || key ||
|| mixer || mouse || music || surfarray || time ||

pygame.key

Contains routines for dealing with the keyboard.
get_focused - state of keyboard focus
get_mods - get current state of modifier keys
get_pressed - get the pressed state for all keys
name - get the name of a key
set_mods - set the state of the modifier keys
set_repeat - change the keyboard repeat

get_focused
pygame.key.get_focused() -> bool
 
get_mods
pygame.key.get_mods() -> int
 
get_pressed
pygame.key.get_pressed() -> tuple of bools
 
name
pygame.key.name(int) -> string
 
set_mods
pygame.key.set_mods(int) -> None
 
set_repeat
pygame.key.set_repeat([delay, interval]) -> None