Python how to stop multiple keypresses

edited January 2016 in Python Mode

I am using processing with the python module. Here is the code that when I press a key, it executes multiple times. Kinda of like when you hold a key down in a word document. I want it to only run once until I release the key. or


  • use the keyPressed() method rather than the keyPressed variable.

    see the reference...

Sign In or Register to comment.