Posted 12 March 2018 - 10:50 PM
I copied this code to study it, and I can not understand the width of the mouse as it affects the event of touching a monitor
event,p1,p2,p3 = os.pullEvent()
-- this line tells the computer to wait until
-- an event happens. We are waiting for a
-- touchscreen event
if event=="monitor_touch" then
-- this checks to see if the event was a
-- touchscreen event
mouseWidth = p2 -- sets mouseWidth
mouseHeight = p3 -- and mouseHeight