静态
click静态
key静态
last静态
last静态
mouse静态
mouseX静态
mouseY静态
multi静态
只读
on静态
inst静态
touch静态
touches静态
touchThe x-coordinate value.
The y-coordinate value.
The node under the point or the stage if no node is found.
Relative Sprite.
The x-coordinate relative to the Sprite.
The y-coordinate relative to the Sprite.
可选
editing: booleanWhether the test is performed in editing mode.
True if the point is within the Sprite's bounds, false otherwise.
静态
cancel静态
get可选
touchId: numberThe ID of the touch point. If not provided, the position of the first touch point will be returned.
The position of the touch point.
静态
hasThe key value. For more information, see: https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
Whether the key is pressed.
En
The threshold for considering a mouse press and release as a click. If the distance between the press and release positions exceeds this value, it is not considered a click.
Zh
鼠标按下和弹起位置之间的距离阀值,用以判断是否视为一次点击。如果超过这个距离,则不视为点击。