---
I see .Controller/key always gets overwritten to 0 on keyup, which appears to be a discrepancy with the C version.
I just moved it up a few lines into the conditional already checking for keydown.
src/devices/controller.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/devices/controller.js b/src/devices/controller.js
index 3c55e14..d024dc0 100644
--- a/src/devices/controller.js+++ b/src/devices/controller.js
@@ -39,12 +39,12 @@ function Controller(emu) {
} else if (mask == 0 && event.keyCode < 20) {
charCode = event.keyCode;
}
+ emu.uxn.dev[0x83] = charCode; } else {
this.keys &= ~mask;
}
// console.log("keydown", event.key, (0x83).toString(16));
emu.uxn.dev[0x82] = this.keys;
- emu.uxn.dev[0x83] = charCode; emu.uxn.eval(peek16(emu.uxn.dev, 0x80))
}
}
--
2.32.1 (Apple Git-133)