Hello,

> I think we have to do some kind of 'localisation' by unmapping the 
> translated keymap to the original keymap, so the guest OS can perform
> its own localisation for the keyboard.  
> 
> Is anybody working on this issue ?

Unfortunately I don't have time at the moment to work on plex86,
but I wanted to point out that we've had the very same problem in
Wine: how to go from X keyboard events back to the PC keyboard
scan codes (for some Windows apps that actually try to use scan
codes ...).

What we did there is similar to what you are proposing: implementing
a backwards map from X keysyms/keycodes to PC scan codes, depending
on the keyboard layout.  We even try to guess the correct localized
keymap that the user is currently using by comparing the keyboard
layout (as retrieved from X) with a bunch of 'known' mappings.

It might be worthwhile to look at the Wine code before reimplementing
everything from scratch ... 


-- 
  Dr. Ulrich Weigand
  [EMAIL PROTECTED]

Reply via email to