当前位置:网站首页>【Cocos Creator 3.5.1】event.getButton()的使用
【Cocos Creator 3.5.1】event.getButton()的使用
2022-06-27 05:34:00 【CN-Dust】
使用方式:
private onMouseUp(event: EventMouse) {
if (event.getButton() === 0) {
this.jumpByStep(1);
} else if (event.getButton() === 2) {
this.jumpByStep(2);
}
}
描述
(method) EventMouse.getButton(): number
@en — Returns mouse button code.
@zh — 获取鼠标按键。
边栏推荐
猜你喜欢
随机推荐
微信小程序刷新当前页面
双位置继电器RXMVB2 R251 204 110DC
Neo4j database export
Two position relay xjls-8g/220
Neo4j community conflicts with neo4j desktop
jq怎么获取倒数的元素
Leetcode298 weekly race record
体验 win10 下 oceanbase 数据库
017 basics of C language: bit field and typedef
Asp.Net Core6 WebSocket 简单案例
Double position relay rxmd2-1mrk001984 dc220v
齐纳二极管 稳压二极管 SOD123封装 正负区分
Neon optimization 1: how to optimize software performance and reduce power consumption?
Logu p4683 [ioi2008] type printer problem solving
When STM32 turns off PWM output, it is a method to fix IO output at high or low level.
【622. 设计循环队列】
Ad22 Gerber files Click to open the Gerber step interface. Official solutions to problems
流媒体协议初探(MPEG2-TS、RTSP、RTP、RTCP、SDP、RTMP、HLS、HDS、HSS、MPEG-DASH)
[station B up dr_can learning notes] Kalman filter 1
022 basics of C language: C memory management and C command line parameters








