Prototype

This commit is contained in:
zenoamaro committed 2019-06-26 03:04:23 +02:00
commit 49591cbea3
9 files changed
+338

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
const input = {};
document.addEventListener('keydown', ({key}) => input[key] = true);
document.addEventListener('keyup', ({key}) => input[key] = false);
export function key(key) {return input[key]}