feat(nds): improve some button interactions

This commit is contained in:
2026-02-10 17:00:11 +01:00
parent 93e6922b68
commit 069884123b
5 changed files with 18 additions and 8 deletions

View File

@@ -110,8 +110,8 @@ onClick((x, y) => {
}
});
useKeyDown(({ key }) => {
if (props.yOffset !== 0) return;
useKeyDown(({ key, repeated }) => {
if (props.yOffset !== 0 || repeated) return;
switch (key) {
case "NDS_START":
case "NDS_A":