Continuous input on key press in p5.js

Hello, Firstly I just want to say that I didn't know where to ask this question since I didn't found the p5.js forum so I'm asking here, I'll understand if that's not the correct place. Anyway I'm trying to do a pong game using p5 and I'd want the paddles to move continuously when the user press the key (i.e UP_ARROW). I searched a bit and it seems to be possible in Processing using keyTyped() (I'm probably wrong) and I just wanted to know if that's possible in p5. If there is no equivalent, could someone give me an advice on how could I do this?

Thank you in advance,

rebelL1ON.

Tagged:

Answers

Sign In or Register to comment.