Is there a way to sense when the screen is touched? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Is there a way to sense when the screen is touched? (/thread-481.html) |
Is there a way to sense when the screen is touched? - veeblefester - 01-20-2014 09:52 PM Something akin to ISKEYDOWN. Page 558 of the User Guide. Thanks in advance for any help. RE: Is there a way to sense when the screen is touched? - tgallo - 01-21-2014 02:23 AM 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; RE: Is there a way to sense when the screen is touched? - Han - 01-21-2014 02:49 AM You can also use WAIT(-1) which handles both keys and mouse events. RE: Is there a way to sense when the screen is touched? - veeblefester - 01-21-2014 06:05 AM Thank you both for your help. |