I have made the following code, click on num pad. I am trying to make all of those numbers clickable and then I want that to send the corresponding integer to an arduino program. Any help would be greatly appreciated. I have never worked with processing before. I know that the noLoop(); function is giving me problems but I am not sure what to do. I also need to make offense defense... clickable. Thanks!
// Test if the cursor is over the zero
if (mouseX > 320 && mouseX < 420 &&
mouseY > 480 && mouseY < 580) {
click0 = true;
if (!locked0) {
stroke(255);
fill(153);
}
}
else {
stroke(153);
fill(153);
click0 = false;
}