/** @internal NOTE: Internal APIs. Subject to change. Use of these APIs in production applications is not supported. */ /** */
import { KeyboardEventTypes } from './babylonjs-import';
export class Keyboard {
    pressedKeys = {};
    constructor(scene) {
        scene.onKeyboardObservable.add((kbInfo) => {
            switch (kbInfo.type) {
                case KeyboardEventTypes.KEYDOWN:
                    this.pressedKeys[kbInfo.event.key] = true;
                    break;
                case KeyboardEventTypes.KEYUP:
                    delete this.pressedKeys[kbInfo.event.key];
                    break;
            }
        });
    }
}
//# sourceMappingURL=keyboard.js.map