Layer.onTouchRotate

Function/Meaning

Rotated

Type
LayerclassEvent
Syntax
onTouchRotate(startangle, currentangle, distance, cx, cy, flag)
Arguments
startangle

The radian angle when multi-touch is started.

currentangle

The radian angle of the touch when an event occurs.

distance

The pixel distance of the touch when the event occurs.

cx

The x-coordinate (in client coordinates) value of the center position.

cy

The y-coordinate (in client coordinates) value of the center position.

flag

Multi-touch status flag.

  • 0x01 : It is set to the first event when multi-touch is started.
Return value
None (void)
Explanation

Occurs when rotating on the touch panel by multi-touch.
This event occurs on the layer with focus.