判定控制器按键当前状态是否正在被触摸。
Parameter Name
Parameter Type
Description
button
ButtonType
细节详见 2.1.4.1 "ButtonType"
控制器按键的类型,ButtonType
对应按键类型的按键当前状态正在被触摸则返回true,否则返回false.