当前位置:网站首页>【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 — 获取鼠标按键。
边栏推荐
- [station B up dr_can learning notes] Kalman filter 1
- Using domain name forwarding mqtt protocol, pit avoidance Guide
- Chapter 1 Introduction
- C language implementation timer
- How pychart installs packages
- Execution rules of pytest framework
- Common programming abbreviations for orbit attitude
- Leetcode298 weekly race record
- Comprehensive application of OpenCV in contour detection and threshold processing
- 006 C language foundation: C storage class
猜你喜欢
![[station B up dr_can learning notes] Kalman filter 3](/img/40/d3ec97be2f29b76a6c049c26ff4998.gif)
[station B up dr_can learning notes] Kalman filter 3

双位置继电器XJLS-8G/220

Discussion on streaming media protocol (MPEG2-TS, RTSP, RTP, RTCP, SDP, RTMP, HLS, HDS, HSS, mpeg-dash)

重映像(STM32)

neo4j图数据库基本概念

Terminal in pychar cannot enter the venv environment

Edge loads web pages in IE mode - edge sets ie compatibility

Edge在IE模式下加载网页 - Edge设置IE兼容性
![[C language] keyword supplement](/img/c5/171e0d8537d9f09c688e31b290ad65.jpg)
[C language] keyword supplement

Double position relay rxmd2-1mrk001984 dc220v
随机推荐
[C language] keyword supplement
Halon common affine transformation operators
清华大学开源软件镜像站网址
微信小程序刷新当前页面
齐纳二极管 稳压二极管 SOD123封装 正负区分
RTP sending PS stream tool (open source)
Neon optimization 1: how to optimize software performance and reduce power consumption?
Comprehensive application of OpenCV in contour detection and threshold processing
Nlp-d62-nlp competition d31 & question brushing D15
C language implementation timer
stm32单片机引脚_如何将单片机的引脚配置为上拉输入
Penetration test - file upload / download / include
导航【机器学习】
LeetCode-515. Find the maximum value in each tree row
007 basics of C language: C operator
STM32关闭PWM输出时,让IO输出固定高或低电平的方法。
【FPGA】基于bt1120时序设计实现棋盘格横纵向灰阶图数据输出
stm32读取IO高低电平状态
IP网络通信的单播、组播和广播
Redis high availability cluster (sentry, cluster)