Check_Swipe_Direction()
Syntax: _Check_Swipe_Direction()
Purpose: Detects the direction of the most recent swipe gesture performed on any object.
Returns: x1, y1, x2, y2, direction
x1, y1: Starting coordinates of the swipe.
x2, y2: Ending coordinates of the swipe.
direction: A string indicating swipe direction ("LEFT", "RIGHT", "UP", "DOWN")
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.
Get_Multi_Touch_Center()
Syntax: _Get_Multi_Touch_Center()
Purpose: Calculates the center point (average coordinates) of all current touches on the screen.
Returns: x, y coordinates of the center point.
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.
Get_Multi_Touch_Info()
Syntax: _Get_Multi_Touch_Info()
Purpose: Retrieves detailed information about all current touches on the screen. Useful for advanced multi-touch interactions.
Returns:
Number of current touches
An array containing x, y coordinates and a unique ID for each touch:
touches[...].x
touches[...].y
touches[...].id
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.
Get_Multi_Touch_Move()
Syntax: _Get_Multi_Touch_Move()
Purpose: Designed to move an object based on multi-touch input. Often used within an event handler function.
Returns:
Current x, y coordinates of the object being moved.
dx, dy: The offset (change) in position caused by the touch.
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.
Get_Multi_Touch_Rotation()
Syntax: _Get_Multi_Touch_Rotation()
Purpose: Detects rotational gestures (e.g., two-finger twist) to rotate an object.
Returns: A value representing the angle of rotation.
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.
Get_Multi_Touch_Scale()
Syntax: _Get_Multi_Touch_Scale()
Purpose: Detects pinch-in or pinch-out gestures to scale an object.
Returns: A scaling factor.
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.
Reset_Touches(event)
Syntax: _Reset_Touches(event)
Purpose: Clears any internal touch tracking data. Useful for resetting the touch state if needed.
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.
V_Elements_Touch(event)
Syntax: _V_Elements_Touch(event)
Purpose: Designed for managing touch interactions with basic shapes (Images, Circles, Rectangles, Rounded Rectangles, Polygons).
Note:
Currently, reliable multi-touch detection may necessitate the
related object to be set to To_Front()
.