Go Down

Topic: MAking mouse move using Pots (Read 2512 times) previous topic - next topic


This might have already been sorted....

Code: [Select]
void draw()
{ serialEvent(myPort);

You don't need to use mouseX or mouseY at all
just bung the interpreted serial data straight into drawing the ellipse.
MouseX and mouseY just map the position of the cursor within the sketch window.
You would use it the other way round normally, ie. using the mouse data for changing the background color (crap example).

Go Up