当前位置:网站首页>【Cocos Creator 3.5.1】event. Use of getbutton()
【Cocos Creator 3.5.1】event. Use of getbutton()
2022-06-27 05:44:00 【CN-Dust】
Usage mode :
private onMouseUp(event: EventMouse) {
if (event.getButton() === 0) {
this.jumpByStep(1);
} else if (event.getButton() === 2) {
this.jumpByStep(2);
}
}
describe
(method) EventMouse.getButton(): number
@en — Returns mouse button code.
@zh — Get mouse button .
边栏推荐
- Pytest框架的执行规则
- Junda technology - centralized monitoring scheme for multi brand precision air conditioners
- 双位置继电器JDP-1440/DC110V
- 思维的技术:如何破解工作生活中的两难冲突?
- Flink production problems (1.10)
- Webrtc series - Nomination and ice of 7-ice supplement for network transmission_ Model
- 微信小程序WebSocket使用案例
- 30 SCM common problems and solutions!
- IP网络通信的单播、组播和广播
- Nlp-d62-nlp competition d31 & question brushing D15
猜你喜欢

Asp.Net Core6 WebSocket 简单案例

Two position relay rxmvb2 r251 204 110dc

Tsinghua University open source software mirror website

Niuke practice 101-c reasoning clown - bit operation + thinking

牛客练习赛101-C 推理小丑---位运算+思维

QT using Valgrind to analyze memory leaks

Redis high availability cluster (sentry, cluster)

NLP-D62-nlp比赛D31&刷题D15

The most detailed download tutorial of MySQL

IAR Systems全面支持芯驰科技9系列芯片
随机推荐
What is BFC? What's the usage?
ES6 0622 III
IP网络通信的单播、组播和广播
Penetration test - file upload / download / include
Web3还没实现,Web5乍然惊现!
双位置继电器JDP-1440/DC110V
Asp.Net Core6 WebSocket 简单案例
Some articles about component packaging and my experience
mysql 查询时将状态改为相对应的文字
双位置继电器RXMVB2 R251 204 110DC
Experience oceanbase database under win10
躲避小行星游戏
Opencv implements object tracking
NEON优化1:软件性能优化、降功耗怎么搞?
RTP sending PS stream tool (open source)
Edge loads web pages in IE mode - edge sets ie compatibility
体验 win10 下 oceanbase 数据库
微信小程序WebSocket使用案例
Obtenir le volume du système à travers les plateformes de l'unit é
STM32 MCU pin_ How to configure the pin of single chip microcomputer as pull-up input