pressDirKey 按下方向键
pressDirKey
类型: MethodDeclaration
定义位置: ui.ts
描述
按下方向键
参数 dirKey: 当前选中按钮的相对方向
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| dirKey | ButtonRelativeDirection | - | - | 
返回值
类型: void
源代码
位置: 第 640 行
public pressDirKey(dirKey: ButtonRelativeDirection): void {
    if (this.focuses.length === 0) return
    if (this.dirKey !== dirKey) {
      this.dirKey = dirKey
      this.keyTurbo = false
      this.keyTurboElapsed = 0
      this.selectButtonByDirKey(dirKey)
    }
  }
文档生成时间:2025/7/21 20:53:39