当前位置:网站首页>【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 .
边栏推荐
- Experience oceanbase database under win10
- Zener diode zener diode sod123 package positive and negative distinction
- 函数栈帧的形成与释放
- IP网络通信的单播、组播和广播
- Web3 has not been implemented yet, web5 suddenly appears!
- Nlp-d62-nlp competition d31 & question brushing D15
- 【Cocos Creator 3.5.1】input. Use of on
- EasyExcel合并相同内容单元格及动态标题功能的实现
- 洛谷P4683 [IOI2008] Type Printer 题解
- Avoid asteroids
猜你喜欢
neo4j图数据库基本概念
函数栈帧的形成与释放
双位置继电器HJWS-9440
LeetCode-515. 在每个树行中找最大值
Terminal in pychar cannot enter the venv environment
Formation and release of function stack frame
leetcode-20. Valid parentheses -js version
jq怎么获取倒数的元素
Basic concepts of neo4j graph database
Senior [Software Test Engineer] learning route and necessary knowledge points
随机推荐
双位置继电器XJLS-8G/220
Two position relay hjws-9440
Execution rules of pytest framework
OpenCV的轮廓检测和阈值处理综合运用
齐纳二极管 稳压二极管 SOD123封装 正负区分
Comprehensive application of OpenCV in contour detection and threshold processing
Reading graph augmentations to learn graph representations (lg2ar)
LeetCode-515. Find the maximum value in each tree row
Opencv implements object tracking
stm32单片机引脚_如何将单片机的引脚配置为上拉输入
Epics record reference 5 -- array analog input recordarray analog input (AAI)
体验 win10 下 oceanbase 数据库
How pychart installs packages
unity点光源消失
Leetcode99 week race record
Terminal in pychar cannot enter the venv environment
躲避小行星游戏
Junda technology - centralized monitoring scheme for multi brand precision air conditioners
ES6 0622 III
Formation and release of function stack frame