We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e6c5a5 commit 2c70b31Copy full SHA for 2c70b31
packages/input/src/input-handler.ts
@@ -1,4 +1,4 @@
1
-import { type InputEnum } from "./input.enum";
+import { InputEnum } from "./input.enum";
2
3
export class InputHandler {
4
public inputs: Record<string, boolean> = {};
@@ -11,6 +11,10 @@ export class InputHandler {
11
window.addEventListener("keyup", (e: KeyboardEvent) => {
12
this.inputs[e.code] = false;
13
});
14
+
15
+ for (const key in InputEnum) {
16
+ this.inputs[key] = false;
17
+ }
18
}
19
20
getKeyStatus(key: InputEnum): boolean {
0 commit comments