Answers for "how to get if keyn is hold down python"

1

pygame holding a button down

while running: 
    keys = key.get_pressed() 
    if keys[K_DOWN]: 
        print "DOWN" 
    for e in event.get(): 
        pass
Posted by: Guest on August-26-2020

Code answers related to "how to get if keyn is hold down python"

Python Answers by Framework

Browse Popular Code Answers by Language