feat(nds): improve fullscreen button and add volume slider

This commit is contained in:
2026-02-25 17:09:41 +01:00
parent 8c45f831a9
commit a50af98f9a
6 changed files with 91 additions and 52 deletions

View File

@@ -13,6 +13,12 @@ export const useKeyDown = (callback: KeyDownCallback) => {
if (app.lagDetected) return;
const ndsButton = mapCodeToNDS(event.code);
if (
ndsButton &&
document.activeElement &&
document.activeElement !== document.body
)
return;
callback({
key: ndsButton ? `NDS_${ndsButton}` : event.key,
ndsButton,