Ult
Featured
Urt
Ll Lr

Ult
Log in
Urt
Ll Lr


Ult
gettouch()
Urt

Example

void setup(){
fill(255);
}

void loop(){
gettouch(); //stores mouse coordinates in mouseX and mouseY
ellipse(mouseX, mouseY, 20,20); //draws an ellipse at the touch location
}


Description

When called, gettouch() updates the current mouse coordinates in mouseX and mouseY. Typically gettouch() is called inside of a loop.

Syntax


gettouch()


Parameters

none

Returns

none

Related

mouseX
mouseY




Edit History
Ll Lr


Get in touch if you have any questions, or ideas for something you want me to build.