getTouch 获取触摸点
getTouch
类型: MethodDeclaration
定义位置: input.ts
描述
获取触摸点
参数 touchId: 触摸点ID
返回值:触摸点
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| touchId | number | - | - | 
返回值
类型: TouchPoint \| undefined
触摸点
源代码
位置: 第 220 行
public getTouch(touchId: number): TouchPoint | undefined {
    const event = this.event
    if (event instanceof ScriptTouchEvent) {
      return event.getTouch(touchId)
    }
  }
文档生成时间:2025/7/21 20:53:39