On Thu, Dec 14, 2000 at 11:50:06AM -0500, Kevin Lawton wrote:

> The keyboard emulation in plex86, which is from bochs, doesn't
> support non-english mapped keyboards.
> 
> This is quite problematic for enough users that we've got to
> fix it sooner than later.
> 
> Soon I'll type up some details on what the problems are,
> and what we need to do to fix it, to get a quick discussion
> going.  My plan is to spend next week fixing this.
> 
> Likely, along with fully supporting the AT keyboard emulation,
> the solution will involve modularizing so that we can easily
> define a set of keyboard mappings for each language mapping.

I have fixed it here. Here is an outline what I did:

- Some keys (Shift, Ctrl, Alt, Return, etc) are still decoded by
X because X knows where they are and how they are mapped.
- Keys like alpha/numeric and symbols (,.- etc) are
queried with a small tool (it asks the user to press
the relevant keys) and stored in a mapping file which is
loaded by plex86.
- When a key is pressed, plex86 looks in the map. If it's there,
then the BX_KEY is returned from the map. If it's not there,
the old code is used.

This way, the user can remap every key he wants/needs.
Currently, this makes the german keyboard usable except
for AltGr for which I don't know the scancode.

-- 
==============================================
Sowatec AG,       CH-8330 Pf�ffikon (ZH)
Witzbergstr. 7,   http://www.sowatec.com
Tel: +41-(0)1-952 55 55
Fax: +41-(0)1-952 55 66
----------------------------------------------
Aaron "Optimizer" Digulla, [EMAIL PROTECTED]
==============================================

Reply via email to