python Programming Glossary: e.key
Add scrolling to a platformer in pygame http://stackoverflow.com/questions/14354171/add-scrolling-to-a-platformer-in-pygame if e.type QUIT raise SystemExit QUIT if e.type KEYDOWN and e.key K_ESCAPE raise SystemExit ESCAPE if e.type KEYDOWN and e.key.. K_ESCAPE raise SystemExit ESCAPE if e.type KEYDOWN and e.key K_UP up True if e.type KEYDOWN and e.key K_DOWN down True.. KEYDOWN and e.key K_UP up True if e.type KEYDOWN and e.key K_DOWN down True if e.type KEYDOWN and e.key K_LEFT left True..
|