We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I developed a number of Processing sketches many years ago, and just recently decided to embed one of these on my website using processing.js. (It's just a simple sketch where a group of lines follows the mouse location.) I have it working fine when viewed on my laptop's browser, but it doesn't work when viewed on my phone. I did read that processing.js should work with any HTML5-compatible browser.
I had assumed that mouseX and mouseY would receive the location of touch events on my phone's touchscreen, but then I realised that this might be where my problem is. I'd appreciate if someone could point me in the right direction for a straightforward way to get the location of touch events, in the same way that it is straightforward to get the location of the mouse.
Just this morning I discovered the existence of p5.js, and a quick look at the reference there shows that it has Mouse events and Touch events. Would it be more straightforward for me to abandon processing.js and just try to get my sketch working online with p5.js instead?
Thanks for your help, and sorry for the "newbie" question. I did some searching, but couldn't find exactly the answer to my question.