At 12:41 AM +0100 2/15/06, Thomas Tempelmann wrote:
And that's quite a common need for games, for instance. In a game, you
might want to offer a 8-direction set of keys for 2-dimensional movement.
E.g, consider you want to use the (english) keys:
q w e
a . d
z x c
Now, consider you want to tell the user to press the "z" key for "down left".
But what if the user has a German keyboard? Then you'd have to tell him
to press the "y" key instead. And to figure that out, you need a way to map
scan codes to character codes of the local keyboard.
That's what Keyboard.KeyName is for. Just tell him to press
Keyboard.KeyName(&h06) for "down left". Works fine for me.
(Remember, I don't use the QWERTY layout either.)
Best,
- Joe
--
Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>