This function is used to set the distance it takes for a Dragging Gesture event to be triggered by the movement of a touch or click. The distance is measured in inches and has a default value of 0.1.
gesture_drag_distance(distance);
Argument | Type | Description |
---|---|---|
distance | Real | The distance (in inches) to set for drag gesture event detection. |
N/A
if (gesture_get_drag_distance() != 0.1)
{
gesture_drag_distance(0.1);
}
The above code checks to see if the drag distance for gestures is set to 0.1 inches and if it is not it sets it to that value.