• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 15 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0029 秒)

1. 鼠标交互-鼠标交互 [ 100%]

...mouseHandler); rect.on(Event.MOUSE_OUT, this, mouseHandler); rect.on(Event.DOUBLE_CLICK, this, mouseHandler); rect.on(Event.MOUSE_WHEEL, this, mouseHandler); } /** * 鼠标响应事件处理 */ function mouseHandler(e) { switch (e.type) { case Event.MOUSE_DOWN: appendText("\n————————...

来源: Laya_示例 发布时间: 20240930

2. 鼠标交互-鼠标交互 [ 99%]

...Handler); rect.on(Event.MOUSE_OUT, this, this.mouseHandler); rect.on(Event.DOUBLE_CLICK, this, this.mouseHandler); rect.on(Event.MOUSE_WHEEL, this, this.mouseHandler); } /** * 鼠标响应事件处理 */ mouseHandler(e) { const Event = Laya.Event; switch (e.type) { case Event.MOUSE_DOWN: this.append...

来源: Laya2.0_示例 发布时间: 20240930

3. 2D物理-复合碰撞器 [ 92%]

...abel.fontSize = 16; label.color = "#e69999"; Laya.Laya.stage.on(Laya.Event.DOUBLE_CLICK, this, () => { this.totalBox += 100; }); Laya.Laya.timer.frameLoop(1, this, this.addMiniBox); } dispose() { Laya.Laya.stage.offAll(Laya.Event.DOUBLE_CLICK); Laya.Laya.stage.removeChild(this.label); } } new Physic...

来源: Laya2.0_示例 发布时间: 20240930

4. sprite点击事件 位置便宜 [ 85%]

...mouseHandler); rect.on(Event.MOUSE_OUT, this, mouseHandler); rect.on(Event.DOUBLE_CLICK, this, mouseHandler); rect.on(Event.MOUSE_WHEEL, this, mouseHandler); } /** * 鼠标响应事件处理 */ function mouseHandler(e) { switch (e.type) { case Event.MOUSE_DOWN: appendText("\n————————...

来源: Laya_社区 发布时间: 20180205

5. 2D物理-仿生机器人 [ 82%]

...tIntance(revoluteJoint); } eventListener() { Laya.Laya.stage.on(Laya.Event.DOUBLE_CLICK, this, () => { this.motorJoint.motorSpeed = -this.motorJoint.motorSpeed; }); Laya.Laya.stage.on(Laya.Event.CLICK, this, () => { const chassisBody = this.chassis.getComponent(Laya.RigidBody); const chassisPos = ch...

来源: Laya2.0_示例 发布时间: 20240930

6. laya.events.Event_API3.0 [ 81%]

...COLLISION_ENTER COLLISION_EXIT COLLISION_STAY COMPLETE DEVICE_LOST DISPLAY DOUBLE_CLICK DRAG_END DRAG_MOVE DRAG_START EMPTY END ENTER ERROR FOCUS FOCUS_CHANGE FRAME FULL_SCREEN_CHANGE INPUT JOINT_BREAK KEY_DOWN KEY_PRESS KEY_UP LABEL LAYERCHANGE LINK LOADED MESSAGE MOUSE_DOWN MOUSE_DRAG MOUSE_DRAG_E...

来源: Laya3.0_api 发布时间: 20231115

7. 鼠标滚轮滚动事件 [ 80%]

.../ 鼠标经过目标 Laya.Event.MOUSE_OUT // 鼠标移出目标 Laya.Event.DOUBLE_CLICK // 鼠标左键双击 Laya.Event.MOUSE_WHEEL // 鼠标滚轮滚动   请教下,滚轮滚动怎么判断是上滚动还是下滚动? 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

来源: Laya_社区 发布时间: 20180411

8. [0]Event.Mouse_Drag和Event.Mouse_Drag_End在不注册鼠标事件的情况下无法 [ 76%]

...   Event.MOUSE_DOWN, Event.MOUSE_UP, Event.MOUSE_MOVE, Event.CLICK, Event.DOUBLE_CLICK,         Event.RIGHT_CLICK, Event.RIGHT_MOUSE_DOWN, Event.RIGHT_MOUSE_UP,         Event.MOUSE_OVER, Event.MOUSE_OUT, Event.MOUSE_WHEEL     ]);         static isMouseEvent(type) {             r...

来源: Laya_社区 发布时间: 20231106

9. 此问题已解决 [ 71%]

... 浏览: 1440 关注: 2 人 cuixueying • 2017-02-09 10:04 引擎有Event.DOUBLE_CLICK方法 Todo • 2017-02-09 09:38 恩好的,谢谢雪莹姐, 我试试看!

来源: Laya_社区 发布时间: 20170208

10. laya.events.Event [ 64%]

...= display[static] 定义 display 事件对象的 type 属性值。Event  DOUBLE_CLICK : String = doubleclick[static] 定义 doubleclick 事件对象的 type 属性值。Event  DRAG_END : String = dragend[static] 定义 dragend 事件对象的 type 属性值。Event  DRAG_MOVE : String = dragmo...

来源: Laya2.0_api 发布时间: 20190513