feat: basic terminal printing

This commit is contained in:
2026-03-23 23:42:24 +01:00
parent 64717cc652
commit 6cc4837a8e
9 changed files with 176 additions and 5 deletions

5
src/input/keyboard.ts Normal file
View File

@@ -0,0 +1,5 @@
// creates keyboard listeners
export const CreateKeyboardListeners = (onKeyDown: (key: string) => void, onKeyUp: (key: string) => void) => {
document.addEventListener('keydown', event => onKeyDown(event.key))
document.addEventListener('keyup', event => onKeyUp(event.key))
}