Input Logger outputs keyboard
and pointer
information in real time for developers.
Attributes | Meaning |
---|---|
scale |
The display size of the log. |
offset |
Display position offset, specified in normalized. |
color |
The display color of the log. |
layer |
Input Logger layer, default Layer25. Ensure this layer is not taken |
scene |
Effective scene. |
showPointer |
Whether to display pointer information. |
showKeyBoard |
Whether to display keyboard information. |
The Input Logger
is published on npm with full typing support. To install, use:
$ npm install @galacean/engine-toolkit-input-logger
This will allow you to import package entirely using:
import { InputLogger } from "@galacean/engine-toolkit-input-logger";
// Initialize engine and scene.
const engine = await WebGLEngine.create({ canvas: "canvas" });
// Initialize input logger.
new InputLogger(engine);
The engine is released under the MIT license. See LICENSE file.