qc.Keyboard.isAnyKey

原型

  • boolean isAnyKey(void)

说明

判定是否有按键处于按下状态

范例

    if (game.input.keyboard.isAnyKey()) {
        console.log('Key down.');
    }

results matching ""

    No results matching ""