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

Leetcode298 weekly race record

QT using Valgrind to analyze memory leaks

Two position relay rxmvb2 r251 204 110dc

Quick sort (non recursive) and merge sort

How JQ gets the ID name of an element

体验 win10 下 oceanbase 数据库
![[station B up dr_can learning notes] Kalman filter 2](/img/52/777f2ad2db786c38fd9cd3fe55142c.gif)
[station B up dr_can learning notes] Kalman filter 2

RTP 发送PS流工具(已经开源)
![[unity] button of UI interactive component & summary of optional base classes](/img/9f/be9005f03ad9a2bc8da0f910f064c5.png)
[unity] button of UI interactive component & summary of optional base classes

Reading graph augmentations to learn graph representations (lg2ar)
随机推荐
019 basics of C language: C preprocessing
QT using Valgrind to analyze memory leaks
高翔slam14讲-笔记1
机械转码日记【17】模板,STL简介
Avoid asteroids
[nips 2017] pointnet++: deep feature learning of point set in metric space
011 C language basics: C scope rules
Neo4j community conflicts with neo4j desktop
leetcode299周赛记录
Asp. Net core6 websocket simple case
快速排序(非遞歸)和歸並排序
When STM32 turns off PWM output, it is a method to fix IO output at high or low level.
three. JS first person camera gun following
Cognition - how to fill in 2022 college entrance examination volunteers
006 C language foundation: C storage class
Pytest框架的执行规则
[FPGA] UART serial port_ V1.1
[station B up dr_can learning notes] Kalman filter 3
使用域名转发mqtt协议,避坑指南
Epics record reference 5 -- array analog input recordarray analog input (AAI)