[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame.event pygame.key



Josh Close wrote:
Is there a resource that lists all the pygame.event and pygame.key
values and names? If not, is there an easy way to find this?
Look on the 'constants' page in the documentation, (which is unfortunately offline at the moment). In the meantime, you can check out the SDL keycodes. Pygame's are the same with only the "SDL" prefix removed.

http://sdldoc.csn.ul.ie/sdlkey.php#AEN4743


Also, what other methods are there besides pygame.event.type?
At the top of the 'events' page in the pygame documentation there is a thin but complete list of events types and the attributes they come with. To learn more about the events and what the attributes mean, you should check out the SDL docs.

http://sdldoc.csn.ul.ie/eventstructures.php