Sign in to follow this  
Genjix

pygame input event testing [SOLVED]

Recommended Posts

for event in pygame.event.get():
	if event.type == pygame.KEYDOWN:
		if pygame.key.get_pressed() == K_SPACE:
			print "hello!"


whats the problem here? [Edited by - Genjix on May 28, 2005 2:39:55 PM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this