@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
3 lines (2 loc) • 1.1 kB
JavaScript
import{a as t,_ as e}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{b as s,a}from"./declarationMapper-D_filC93.esm.min.js";class i extends t{constructor(t){super(t),this.key=this.registerDataInput("key",s),this.keyCode=this.registerDataOutput("keyCode",s),this.keyValue=this.registerDataOutput("keyValue",s),this.shiftKey=this.registerDataOutput("shiftKey",a),this.ctrlKey=this.registerDataOutput("ctrlKey",a),this.altKey=this.registerDataOutput("altKey",a),this.metaKey=this.registerDataOutput("metaKey",a),this.commandOrCtrl=this.registerDataOutput("commandOrCtrl",a)}_executeEvent(t,s){const a=s.event,i=this.key.getValue(t);return!(!i||i===a.code)||(this.keyCode.setValue(a.code,t),this.keyValue.setValue(a.key,t),this.shiftKey.setValue(a.shiftKey,t),this.ctrlKey.setValue(a.ctrlKey,t),this.altKey.setValue(a.altKey,t),this.metaKey.setValue(a.metaKey,t),this.commandOrCtrl.setValue(e?a.metaKey:a.ctrlKey,t),this._execute(t),!this.config?.stopPropagation)}_preparePendingTasks(t){}_cancelPendingTasks(t){}}export{i as F};
//# sourceMappingURL=flowGraphKeyboardEventBlock-kQjWMbxv.esm.min.js.map