AgonConsole8 / agon-mos

Official AGON QUARK Firmware for Console8: eZ80 MOS
MIT License
31 stars 10 forks source link

Adding support for new keyboard layouts supported by vdp-gl #32

Closed GaiusJocundus closed 8 months ago

GaiusJocundus commented 1 year ago

The following change is needed to be able to select the new layouts (including dvorak) in agon-mos:

diff --git a/src/mos.c b/src/mos.c
index 8559922..c0e9fc8 100644
--- a/src/mos.c
+++ b/src/mos.c
@@ -637,7 +637,7 @@ int mos_cmdSET(char * ptr) {
        ) {
                return 19; // Bad Parameter
        }
-   if(strcmp(command, "KEYBOARD") == 0 && value <= 8) {
+ if(strcmp(command, "KEYBOARD") == 0 && value <= 18) {
                putch(23);
                putch(0);
                putch(VDP_keycode);

Otherwise we get an "Invalid Parameter" error even when selecting supported layouts.

Related issues:

GaiusJocundus commented 1 year ago

Relevant PR: https://github.com/AgonConsole8/agon-mos/pull/33

stevesims commented 8 months ago

all present and future keyboards supported by the VDP can now be selected from MOS as of the 2.2.0 release

MOS has hard-coded help text, which has been updated to the current keyboard list, as of March 2024.