qc.Mouse.isAnyMouse

原型

  • boolean isAnyMouse(void);

说明

判定是否有鼠标处于按下状态

范例

    if (game.input.mouse.isAnyMouse()) {
        console.log('Mouse pressed.');
    }

results matching ""

    No results matching ""