判定控制器按键是否触发按下动作,当ButtonType为ButtonBack时,兼容HUAWEI VR 1.0的返回按键按下功能。
Parameter Name
Parameter Type
Description
button
ButtonType
细节详见 2.1.4.1 "ButtonType"
控制器按键的类型,ButtonType
对应按键类型的按键触发按下动作则返回true,否则返回false。