touch_get_Cursor()

Example

POINT point;

void setup(){
fill(255);
}

void loop(){
if(touch_get_Cursor(&point)) {
ellipse(point.x, point.y, 20,20); //draws an ellipse at the touch
}
}


Description

When called, touch_get_Cursor will update the point.x and point.y data of the last touch. touch_get_Cursor will only update the point if the screen has been touched since the last time it was called.

Syntax


char touch_get_Cursor(POINT * p)


Parameters

POINT * p – Storage for the x and y mouse coordinate.

Returns

0 – The screen was NOT touched.
1 – The screen was touched

Related

gettouch()
mouseX
mouseY
http://liquidware.pbworks.com/w/page/17699248/TouchShield%20API




Edit History