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

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

1. DOUBLE_CLICK双击问题 [ 100%]

DOUBLE_CLICK双击问题 DOUBLE_CLICK事件 (1)快速连续点击3次,会触发2次双击. (2)快速在一个按钮是连续点击2次会触发双击,然后移动到另外一个按钮单击也会触发他的 双击事件. 附件 : --> new1.rar 2020-02-26 添加评论 免费帖 --> 分享 微博 ...

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

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

...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

3. 鼠标交互-鼠标交互 [ 78%]

...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

4. 2D物理-复合碰撞器 [ 76%]

...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

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

...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. sprite点击事件 位置便宜 [ 63%]

...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

7. 按钮点击事件 [ 63%]

... 2018-04-18 0 0 分享 微博 QZONE 微信 Supermang42 赞同来自: Event.DOUBLE_CLICK   2018-04-18 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自:   2018-04-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zxcmht310 相关...

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

8. 此问题已解决 [ 61%]

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

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

9. 鼠标滚轮滚动事件 [ 58%]

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

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

10. laya.events.Event_API3.0 [ 57%]

...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