当前位置:网站首页>【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 — 获取鼠标按键。
边栏推荐
猜你喜欢

机械转码日记【17】模板,STL简介

流媒体协议初探(MPEG2-TS、RTSP、RTP、RTCP、SDP、RTMP、HLS、HDS、HSS、MPEG-DASH)

Deep dive kotlin synergy (XV): Test kotlin synergy

Dual position relay dls-34a dc0.5a 220VDC

How JQ gets the reciprocal elements

关于元器件封装的一些文章和一下我的体会

快速排序(非递归)和归并排序

LeetCode-515. 在每个树行中找最大值

躲避小行星游戏

【FPGA】基于bt1120时序设计实现棋盘格横纵向灰阶图数据输出
随机推荐
Penetration test - file upload / download / include
Comprehensive application of OpenCV in contour detection and threshold processing
Navigation [machine learning]
面试:Selenium 中有哪几种定位方式?你最常用的是哪一种?
016 C language foundation: C language enumeration type
STM32 MCU pin_ How to configure the pin of single chip microcomputer as pull-up input
IP网络通信的单播、组播和广播
Unity中跨平台获取系统音量
微信小程序WebSocket使用案例
躲避小行星游戏
Qt使用Valgrind分析内存泄漏
Open the door small example to learn ten use case diagrams
快速排序(非递归)和归并排序
019 basics of C language: C preprocessing
leetcode-20. Valid parentheses -js version
Avoid asteroids
双位置继电器HJWS-9440
高翔slam14讲-笔记1
《数据库原理与应用》第一版 马春梅……编著 期末复习笔记
021 basics of C language: recursion, variable parameters