summaryrefslogtreecommitdiffstats
path: root/src/view/input
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-01 00:59:13 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-01 00:59:13 +0100
commit9f2e4e6996fb96d23e1ca29667130a2111a59de5 (patch)
treefa7c3c22d469f062252735269dbc09031fc47dd8 /src/view/input
parent22b06efe2c2646a01535b5bbf5f3cc57de81ad0d (diff)
downloadrpgedit-9f2e4e6996fb96d23e1ca29667130a2111a59de5.tar
rpgedit-9f2e4e6996fb96d23e1ca29667130a2111a59de5.zip
Do not use default exports
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>) {