@galacean/engine-toolkit-input-logger
v1.3.9
Published
Input Logger outputs `keyboard` and `pointer` information in real time for developers.
Downloads
125
Maintainers
Keywords
Readme
Input Logger
Input Logger outputs keyboard
and pointer
information in real time for developers.
Feature
| 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. |
npm
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";
Usage
// Initialize engine and scene.
const engine = await WebGLEngine.create({ canvas: "canvas" });
// Initialize input logger.
new InputLogger(engine);
Links
License
The engine is released under the MIT license. See LICENSE file.