summaryrefslogtreecommitdiffstats
path: root/src/view/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/input')
-rw-r--r--src/view/input/directionhandler.ts (renamed from src/view/input/DirectionHandler.ts)9
-rw-r--r--src/view/input/inputhandler.ts (renamed from src/view/input/InputHandler.ts)4
2 files changed, 7 insertions, 6 deletions
diff --git a/src/view/input/DirectionHandler.ts b/src/view/input/directionhandler.ts
index 691ba01..0a3687e 100644
--- a/src/view/input/DirectionHandler.ts
+++ b/src/view/input/directionhandler.ts
@@ -1,7 +1,8 @@
-import {Listenable} from '../../util';
-import InputHandler from './InputHandler';
+import { InputHandler } from './inputhandler';
-import {vec2} from 'gl-matrix';
+import { Listenable } from '../../util';
+
+import { vec2 } from 'gl-matrix';
export const enum Keycode {
Left = 37,
@@ -10,7 +11,7 @@ export const enum Keycode {
Down = 40,
}
-export default class DirectionHandler extends Listenable<[vec2]> {
+export class DirectionHandler extends Listenable<[vec2]> {
private readonly input: InputHandler;
constructor() {
diff --git a/src/view/input/InputHandler.ts b/src/view/input/inputhandler.ts
index a6f1293..96f15dd 100644
--- a/src/view/input/InputHandler.ts
+++ b/src/view/input/inputhandler.ts
@@ -1,6 +1,6 @@
-import {Listenable} from '../../util';
+import { Listenable } from '../../util';
-export default class InputHandler extends Listenable<[]> {
+export class InputHandler extends Listenable<[]> {
private readonly keys: Set<number> = new Set();
constructor(relevantKeys: Set<number>) {