Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to detect if the space button is pressed in pygame

if event.key == pygame.K_SPACE: 
	#what ever you want to run
 
PREVIOUS NEXT
Tagged: #detect #space #button #pressed #pygame
ADD COMMENT
Topic
Name
2+8 =