(Redirected from Event mouse drag)Jump to navigation Jump to search
Occurs every time the mouse moves to a different position while a mouse button is held down (e.g. left click dragging). It will always be called after a mouse_click event.
|Prints the mouse coordinates every time the mouse is dragged on the screen.|
while true do local event, button, x, y = os.pullEvent("mouse_drag") print("Dragged to:", x, y) end