Hello,

I'm working on enhancing keyboard support for Plex86, and like to share
my efforts a little.

I modified a little the bochs keyboard emulation to add support for 3
scancodes (like a real AT keyboard) and the instruction to switch
between scancodes.

I also modified X and SDL keyboard to use keyboard scancodes (instead of
X (or SDL) KeySyms).
The rationale for this modification is the following :
When using keysyms, in the case of a non-US keyboard (as you guessed,
I'm French, and I own a french AZERTY keyboard ;-) ), you have to modify
the keyboard-to-plex86 mapping :
I.e., where an US 'Q' key is mapped to BX_KEY_Q, you'll need to have a
french key 'A' mapped to BX_KEY_Q. Etc, the same with numeric keys and
other symbols.
When using key scancodes, the scancode are (almost) the same between US
and international keyboards, so there is no need to change the source
and recompile for another keyboard.

Using this technique, my keyboard generates QWERTY.... under (dos)
plex86, (even being an AZERTY keyboard), and that's normal, for it is up
to the operating system (in this case dos) to load the appropriate
keyboard driver.

I hope I was clear enough, if not, tell me !

I'm also rewriting portions of the BIOS, for the moment INT09, to
enhance keyboard behaviour.

You can find the patches there :
http://ludovic.lange.free.fr/PLEX86/index.html

best regards,

Ludovic LANGE

Reply via email to