当前位置:网站首页>【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);
边栏推荐
- [FPGA] realize the data output of checkerboard horizontal and vertical gray scale diagram based on bt1120 timing design
- Navigation [machine learning]
- Chapter 1 Introduction
- How pychart installs packages
- QListWidget中的内容不显示
- Luogu p2939 [usaco09feb]revamping trails G
- Gao Xiang slam14 lecture - note 1
- 双位置继电器RXMD2-1MRK001984 DC220V
- 思维的技术:如何破解工作生活中的两难冲突?
- 019 basics of C language: C preprocessing
猜你喜欢

【NIPS 2017】PointNet++:度量空间中点集的深层次特征学习

Deep dive kotlin synergy (XV): Test kotlin synergy

Ad22 Gerber files Click to open the Gerber step interface. Official solutions to problems

How JQ gets the reciprocal elements

Win 10 如何打开环境变量窗口

牛客练习赛101-C 推理小丑---位运算+思维

双位置继电器RXMD2-1MRK001984 DC220V

How JQ gets the ID name of an element

Using domain name forwarding mqtt protocol, pit avoidance Guide

ES6 0622 III
随机推荐
Ad22 Gerber files Click to open the Gerber step interface. Official solutions to problems
QListWidgetItem上附加widget
leetcode299周赛记录
双位置继电器JDP-1440/DC110V
Unity point light disappears
Comprehensive application of OpenCV in contour detection and threshold processing
双位置继电器DLS-34A DC0.5A 220VDC
unity点光源消失
Unicast, multicast and broadcast of IP network communication
How JQ gets the ID name of an element
LeetCode-515. 在每个树行中找最大值
es6 0622三
[622. design cycle queue]
躲避小行星游戏
【FPGA】 基于FPGA分频,倍频设计实现
【FPGA】UART串口_V1.1
neo4j community与neo4j desktop冲突
Unity中跨平台获取系统音量
Codeforces Round #802 (Div. 2)
AD22 gerber files 点开 gerber steup 界面 有问题 官方解决方法