feat(nds): improve key input system

This commit is contained in:
2026-02-10 16:28:54 +01:00
parent 38b36d0e1c
commit a95feb223e
16 changed files with 59 additions and 102 deletions

View File

@@ -8,7 +8,7 @@ const QUIT_SIZE = assets.images.achievements.quit.rect.width;
const QUIT_X = Math.floor(LOGICAL_WIDTH / 2 - QUIT_SIZE / 2);
const QUIT_Y = 135;
useKeyDown((key) => {
useKeyDown(({ key }) => {
if (store.isIntro || store.isOutro) return;
switch (key) {