Hello!
I'm trying to find a way to make my program respond to user input. One way I figured would be that when the enter key is pressed, a certain event happens. Unfortunately, I can't figure out a way to keep the event going once the enter key is released.
I'm quite new to this, so I'd appreciate all the help I can get! Thanks!
What I have so far in regards to this issue:
String msg="";
msg = "Wanna play a game? Y/N";
if (key == ENTER){
textFont(font,10); //specify the font
fill(255); //set the colour
text(msg,25,110,300,300);