UNPKG

@matematrolii/sketchbook

Version:

3D matematrolii playground built on three.js and cannon.js

12 lines (11 loc) 236 B
export class KeyBinding { public eventCodes: string[]; public isPressed: boolean = false; public justPressed: boolean = false; public justReleased: boolean = false; constructor(...code: string[]) { this.eventCodes = code; } }