当前位置:网站首页>【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);
边栏推荐
- C language implementation timer
- Open the door small example to learn ten use case diagrams
- Deep dive kotlin synergy (XV): Test kotlin synergy
- Reading graph augmentations to learn graph representations (lg2ar)
- unity点光源消失
- 【Cocos Creator 3.5.1】坐标的加法
- AcWing 第 57 场周赛---BC题挺好
- neo4j community与neo4j desktop冲突
- Edge loads web pages in IE mode - edge sets ie compatibility
- 开门小例子学习十种用例图
猜你喜欢
LeetCode-515. Find the maximum value in each tree row
双位置继电器RXMVB2 R251 204 110DC
Junda technology - centralized monitoring scheme for multi brand precision air conditioners
Basic concepts of neo4j graph database
Terminal in pychar cannot enter the venv environment
流媒体协议初探(MPEG2-TS、RTSP、RTP、RTCP、SDP、RTMP、HLS、HDS、HSS、MPEG-DASH)
[FPGA] realize the data output of checkerboard horizontal and vertical gray scale diagram based on bt1120 timing design
高翔slam14讲-笔记1
Redis high availability cluster (sentry, cluster)
ES6 0622 III
随机推荐
Codeforces Round #802 (Div. 2)
洛谷P2939 [USACO09FEB]Revamping Trails G 题解
Neo4j database export
躲避小行星游戏
Basic concepts of neo4j graph database
neo4j community与neo4j desktop冲突
网易云音乐params和encSecKey参数生成代码
Chapter 2 Introduction to key technologies
C language implementation timer
leetcode298周赛记录
EasyExcel合并相同内容单元格及动态标题功能的实现
Dual position relay dls-34a dc0.5a 220VDC
leetcode-20. Valid parentheses -js version
Wechat applet refreshes the current page
Navigation [machine learning]
QListWidget中的内容不显示
RTP sending PS stream tool (open source)
Neon optimization 1: how to optimize software performance and reduce power consumption?
什么是BFC?有什么用?
Deep dive kotlin synergy (XV): Test kotlin synergy