From 5814ce439c8f898e792d3b73c696d297ccb88123 Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Wed, 11 Mar 2026 00:41:58 +0100 Subject: [PATCH] feat(nds): display hints if user presses X while trying to press NDS_X (and other buttons) --- app/pages/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/pages/index.vue b/app/pages/index.vue index 209ffcf..3c353a6 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -146,7 +146,7 @@ onMounted(async () => { } }); -useKeyDown(async ({ key, repeated }) => { +useKeyDown(async ({ key, ndsButton, repeated }) => { if (!repeated && key.toLocaleLowerCase() === "h") { if (app.hintsVisible) { hideHelpLabels(); @@ -154,6 +154,11 @@ useKeyDown(async ({ key, repeated }) => { await showHelpLabels(); } } + + const rawKey = key.toLowerCase(); + if (!repeated && !app.hintsVisible && (rawKey === "x" || rawKey === "b" || rawKey === "y")) { + await showHelpLabels(); + } });