touch()
Purpose
Read input from the touch screen
Description
Read the cooridinates of up to ten points on the touch screen that have been touched
Syntax
list = touch( )
Arguments
list An array of up to 10 points that are currently being touched
Example
list = []
loop
clear()
printAt( 0, 0, "Touch the screen" )
list = touch()
count = len( list )
if count > 0 then
printAt( 0, 1, "count = ", count, " x0 = ", list[0].x, " y0 = ", list[0].y )
for i = 0 to count loop
circle( list[i].x, list[i].y, 75, 100, red, 0 )
repeat
endIf
update()
repeat
Associated Commands
input(), controls(), docked(), getKeyboardBuffer(), showKeyboard(), touch(), hideKeyboard()