Howdy!
This forum seems to be about the same topic you are looking to solve:
https://forum.processing.org/topic/mouse-click-on-object
also, there are some examples of gui and buttons in the learning section of the processing website:
http://processing.org/learning/topics/buttons.html
you could also look into the ControlP5 lib:
http://www.sojamo.de/libraries/controlP5/
which provides some easy ways to create basic buttons if that is what you are looking for.
good luck!
ak
This forum seems to be about the same topic you are looking to solve:
https://forum.processing.org/topic/mouse-click-on-object
also, there are some examples of gui and buttons in the learning section of the processing website:
http://processing.org/learning/topics/buttons.html
you could also look into the ControlP5 lib:
http://www.sojamo.de/libraries/controlP5/
which provides some easy ways to create basic buttons if that is what you are looking for.
good luck!
ak