File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Reg:Keyboard MApping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reg:Keyboard MApping" Watch "Reg:Keyboard MApping" New topic

Reg:Keyboard MApping

Jonny checker

Joined: Jun 18, 2008
Posts: 4
Im developing a client application as similar to VNC client.In that im having some problem in keyboard Mapping.

If the Java client and Host are in french keyboard settings, the Java client receives the ascii code of the key (getkeycode).then parsing hte ascii value to the corresponding USB Key value using the HASH MAp table and send it to the Host.Then Host receives the USB code value then the OS changes the key value to the corresponding keyboard settings.

For example Im typing key 'a' (physically i typed 'a' key but the Java
receives a 'q' in the keylistener because i changed the keyboard settings
to french) in the Java client.Receives 'q' in the key listener and get
the USB code from the Hash table ans send it to the Host, then Host
receives and send it to the OS it then convert the 'q' in to 'a'
and displaying in the Host system.
How can i solve the issue mentioned above?

How can i send the UNknown location key and Unknown key code key in to the HOst
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

"Jonny", please check your private messages for an important administrative matter.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Reg:Keyboard MApping
It's not a secret anymore!