Loading...
Logo
Processing Forum
We work on a iPad project with processing and our problem is that "addMouseListener" make an error when processing.js try to convert for web.
What we must use to properly handle mouse event?

For moment, we look each button when a click is fired in order to know over which button is the cursor. It's not a good idea but we dont find anything else :s

Replies(3)

Not everything works on Processing.js mode! If it's not in Processing's reference, probably won't  work there!  
So there are no good way of doing to handle mouse event? Our actual method is the only one?

addMouseListener is an AWT method, not working in JS.
You should use mousePressed() and similar Processing-specific methods.