当前位置:网站首页>【Cocos Creator 3.5.1】input. Use of on
【Cocos Creator 3.5.1】input. Use of on
2022-06-27 05:44:00 【CN-Dust】
input.on Instead of 2.x Medium cc.director.on perhaps this.node.on
Usage mode :( Will be automatically generated on the top import Content )
input.on(Input.EventType.MOUSE_UP, this.onMouseUp, this);
describe :
(alias) const input: Input
import input
@en — The singleton of the Input class, this singleton manages all events of input. include: touch, mouse, accelerometer and keyboard.
@zh — Input class singleton , This singleton manages all input events , Include : touch 、 mouse 、 Accelerometer and keyboard .
@example
input.on(Input.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
input.off(Input.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
边栏推荐
- 双位置继电器HJWS-9440
- neo4j community与neo4j desktop冲突
- 双位置继电器XJLS-8G/220
- 双位置继电器RXMVB2 R251 204 110DC
- Zener diode zener diode sod123 package positive and negative distinction
- Two position relay rxmvb2 r251 204 110dc
- Opencv implements object tracking
- Pycharm 中 Terminal 无法进入 venv 环境的问题
- STM32 reads IO high and low level status
- neo4j图数据库基本概念
猜你喜欢
随机推荐
Wechat applet websocket use case
Opencv实现对象跟踪
AD22 gerber files 点开 gerber steup 界面 有问题 官方解决方法
mysql 查询时将状态改为相对应的文字
Gao Xiang slam14 lecture - note 1
NEON优化1:软件性能优化、降功耗怎么搞?
AcWing 第 57 场周赛---BC题挺好
面试:Selenium 中有哪几种定位方式?你最常用的是哪一种?
Two position relay hjws-9440
Spark 之 WholeStageCodegen
Redis high availability cluster (sentry, cluster)
DAST black box vulnerability scanner part 6: operation (final)
Basic concepts of neo4j graph database
Logu p4683 [ioi2008] type printer problem solving
网易云音乐params和encSecKey参数生成代码
【Cocos Creator 3.5.1】input.on的使用
Remapping (STM32)
Chapter 2 Introduction to key technologies
es6 0622三
Laptop does not have WiFi option solution









