大约有 18 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0025 秒)
...事件,默认为trueKeyBoardManagerPublic Methods MethodDefined By hasKeyDown(key:int):Boolean[static] 返回指定键是否被按下。 KeyBoardManagerProperty Detailenabledpropertypublic static var enabled:Boolean = true是否开启键盘事件,默认为trueMethod DetailhasKeyDown()method...
来源: laya_api 发布时间: 20170929
...事件,默认为trueKeyBoardManagerPublic Methods MethodDefined By hasKeyDown(key:int):Boolean[static] 返回指定键是否被按下。 KeyBoardManagerProperty Detailenabledpropertypublic static var enabled:Boolean = true是否开启键盘事件,默认为trueMethod DetailhasKeyDown()method...
来源: Laya2.0_api 发布时间: 20190513
...个模型,sp正常 sp2如果出屏幕就会消失 Laya.KeyBoardManager.hasKeyDown(65) && this.sp.transform.translate(this.translateA);//A Laya.KeyBoardManager.hasKeyDown(68) && this.sp.transform.translate(this.translateD);//D Laya.KeyBoardManager.hasKeyDown(65) && this.sp2....
来源: Laya_社区 发布时间: 20190618
...; !isNaN(this.lastMouseY) && this.isMouseDown) { Laya.InputManager.hasKeyDown(87) && this.moveForward(-this.speed * elapsedTime);//W Laya.InputManager.hasKeyDown(83) && this.moveForward(this.speed * elapsedTime);//S Laya.InputManager.hasKeyDown(65) && this.moveRight(-...
来源: Laya3.0_文档 发布时间: 20251010
...享 微博 QZONE 微信 akunone 赞同来自: laya.events.KeyBoardManager.hasKeyDown(laya.events.Keyboard.CONTROL) 2019-07-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 TextInput重写onFocus和onBlur事件监听...
来源: Laya_社区 发布时间: 20180406
...newPos:Laya.Vector3 = this.sp3Role.transform.position; if (KeyBoardManager.hasKeyDown(Keyboard.W)) { this.spRole.y -= 1; // newPos.y += 0.1; this.rotateRole(this.rotationW); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 this._camera.convertScreenCoordToOrthographicCoord(new Vector3...
来源: Laya_社区 发布时间: 20220622
...直接用到,所以影响不大。KeyboardManager原来只有一个接口hasKeyDown,现在改为调用InputManager.hasKeyDown即可。 新的输入处理系统的特性有: 3.1 2D和3D统一接口, 都可以通过事件监听方式和Laya.Script命名函数方式处理输入。例如: this...
来源: Laya3.0_文档 发布时间: 20251010
...刷新。 修改代码 function keyDown(e) { if(Laya.KeyBoardManager.hasKeyDown(87)) //'w' { Matter.Body.setAngle(partA, Math.PI/6); } }; 注意,不要在创建comp的时候立刻对comp调用setAngle。 问题分析: 查看LayaRender.Body渲染函数发现,Body的渲...
来源: Laya_社区 发布时间: 20180625