swipe
This event is called when the user swipes on the screen.
Return Values
- string: The event name.
- string: The direction of the swipe. Valid directions are:
"left","right","up", or"down".
while true do local _,dir = os.pullEvent("swipe") print("Swipe direction:",dir) end