Skip to content

raylib.GetGestureDragVector

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get drag vector (between initial touch point to current)

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

if raylib.GetGestureDetected == raylib.GESTURE_DRAG then
    v = raylib.GetGestureDragVector
    print "Drag vector: " + v[0] + ", " + v[1]
end if

Clone this wiki locally