Skip to main content

pressDirKey 按下方向键

pressDirKey​

类型: MethodDeclaration

定义位置: ui.ts

描述​

按下方向键

参数 dirKey: 当前选中按钮的相对方向

参数​

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

返回值​

类型: 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)
}
}

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