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 https://gyazo.com/d57eb16ee6bf82fe8fbc79729446cb95

Answers

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

    see the reference...

Sign In or Register to comment.