sq.h changes, grabbed reserved field in sqKeyboardEvent
Andreas Raab
andreas.raab at gmx.de
Fri Mar 31 20:15:16 UTC 2006
Here is another run at the fence:
John M McIntosh wrote:
> Sure I can return 42 the magic number from LMGetKbdType() meaning you
> are using as Estonia keyboard, or maybe
> 78 for Devanagari keyboard in the Indian Language Kit, however it's
> unlikely I or any other developer will want to code the
> keyboard to ascii/macroman/unicode whatever translation tables in the
> image.
What we could do for trying to solve the problem Mike described, is to
expose the functionality of ToUnicode or equivalent. E.g., instead of
having the VM doing all the mapping, allow the image request information
about "what would the result of mapping this key combination be" and
basically use the information we get out of the keyboard events (meta
state and key code). That way, if you wanted to map Ctrl-Shift-1 to
Ctrl-! you'd filter out the Ctrl key, map Shift-1 to "!" and are done.
The issue here is that I've got no idea how hard it is to support this
on other platforms...
Cheers,
- Andreas
More information about the Vm-dev
mailing list