Post Reply 
Is there a way to sense when the screen is touched?
01-21-2014, 02:23 AM (This post was last modified: 01-21-2014 02:24 AM by tgallo.)
Post: #2
RE: Is there a way to sense when the screen is touched?
you need to constantly be checking in a loop



local touch, X, Y;

WHILE ISKEYDOWN(4)<>1 do
wait(.1);
touch:=mouse();

if size(touch(1)) then
if touch(1,5)==0 then
X:=B→R(touch(1,1));
Y:=B→R(touch(1,2));
end;
end;


END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Is there a way to sense when the screen is touched? - tgallo - 01-21-2014 02:23 AM



User(s) browsing this thread: 1 Guest(s)