获取鼠标左键点击 creator 3.8
start() {
input.on(Input.EventType.MOUSE_DOWN, this.onMouseDown, this);
}
onMouseDown(event: EventMouse) {
switch (event.getButton()) {
case EventMouse.BUTTON_LEFT:
console.log('BUTTON_LEFT');
break;
}
}