feat(nds): display hints if user presses X while trying to press NDS_X (and other buttons)
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m1s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m1s
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user