This event is queued while the user clicks and drags on the screen.
left
right
up
down
while true do local _,dir = os.pullEvent("pan") print("Pan direction:",dir) end