Skip to main content

getTouch 获取触摸点

getTouch​

类型: MethodDeclaration

定义位置: input.ts

描述​

获取触摸点

参数 touchId: 触摸点ID

返回值:触摸点

参数​

参数名类型描述默认值
touchIdnumber--

返回值​

类型: TouchPoint \| undefined

触摸点

源代码​

位置: 第 220 行

public getTouch(touchId: number): TouchPoint | undefined {
const event = this.event
if (event instanceof ScriptTouchEvent) {
return event.getTouch(touchId)
}
}

文档生成时间:2026/2/1 16:51:39