[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] No keyboard with GEM=ROM



I vaguely remember that there is some keyboard vector that is not supported in keyboard.c - i.e. the driver is supposed to pass the processed data further, but it does not. The first versions of keyboard.c did that, but later it has been somehow decided that this is useless. The ROM GEM probably hooks onto it - and at the time of writing of keyboard.c, as far as I can remember, there was not way to run the GEM from ROM (it was thought useless as well - honestly I don't know why anyone would do that, the ROM AES is crap).

To fix that you probably need to change the type of the main keyboard.c function to int, place 'return scancode' at the end, and correct the assembler module that calls the function.

So long
KMK

If I put GEM=ROM in MINT.CNF, FreeMiNT runs the ROM AES, as expected.
However, the keyboard does not work in the AES. For example, we can't type anything in the New Folder dialog, and the keyboard shortcuts does not work...

However, the keyboard works fine in textmode programs running on the BIOS console.

Furthermore, if you type some characters while you are on the desktop, then you run some interactive textmode program such as bash, you will see your characters on the bash command line ! It seems that the keystrokes are ignored and buffered while in GEM applications, then they appear after switching to textmode.

I have checked this behaviour on ARAnyM and the latest FreeMiNT snapshot, with both EmuTOS and TOS 4.04.

--
Vincent Rivi?re



Pozdrawiam
KMK