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

大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0012 秒)

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

...his, keyboardInspector); } function listenKeyboard() { keyDownList = []; //添加键盘按下事件,一直按着某按键则会不断触发 Laya.stage.on(Event.KEY_DOWN, this, onKeyDown); //添加键盘抬起事件 Laya.stage.on(Event.KEY_UP, this, onKeyUp); } /**键盘按下处理*/ function onKeyD...

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

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

... appendText(value) { txt.text += value; txt.scrollY = txt.maxScrollY; } /**添加提示文本*/ function createLogger() { txt = new Text(); txt.overflow = Text.SCROLL; txt.text = "请把鼠标移到到矩形方块,左右键操作触发相应事件\n"; txt.size(Laya.stage.width, Laya.stage.height); t...

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

3. 鼠标交互-滑动 [ 85%]

...age.addChild(graph); } /**按下事件处理*/ function onMouseDown(e) { //添加鼠标移到侦听 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); buttonPosition = button.x; Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } /**移到事件处理*...

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