Skip to main content

getGamepadButtonUp 判断是否刚弹起手柄键

getGamepadButtonUp

类型: MethodDeclaration

定义位置: input.ts

描述

判断是否刚弹起手柄键

参数 button: 键码

返回值:是否刚弹起

参数

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

返回值

类型: boolean

是否刚弹起

源代码

位置: 第 149 行

public getGamepadButtonUp(button: ControllerButtonCode): boolean {
return this.gamepadupList.contains(button)
}

文档生成时间:2025/7/7 12:07:06