Multiple keys?
katie smith
iceboy127 at yahoo.com
Fri Dec 28 11:52:47 EST 2007
while repeat:
for event in pygame.event.get():
if event.type == (QUIT):
pygame.quit()
if (event.type == KEYDOWN):
if (event.key == K_ESCAPE):
pygame.quit()
if (event.key == K_UP):
Refresh()
when I make an event with keys I use that model above. I have no idea how to do multiple keys at a time. I would like to make it so if i hold down and left the character moves down in left. Does anyone have any idea how to do that?
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071228/5df9d25e/attachment.html>
More information about the Python-list
mailing list