|
Post by u9 on Jun 30, 2007 13:39:26 GMT -5
It would be nice (for us non-americans) to be able to read the ascii character returned by the operating system when ever a key is pressed. Depending on the key pressed and the selected keyboard layout, there are different characters across countries. It would be nice when asking the player to enter his name. Of course, i have no idea how you can make that available in B2D. Maybe you have some ideas
|
|
|
Post by u9 on Jul 1, 2007 13:00:57 GMT -5
Could a function be implemented like so: character = key.getOSChar( vk_somekey )
that would return the character (if any) mapped by the OS to that particular vk_somekey key on the keyboard?
|
|
|
Post by Guilect on Jul 2, 2007 16:43:28 GMT -5
B2D uses DirectInput for keyboard operations. DirectInput deals in just the keycode mapping. The only thing I can think of at the moment is to make a routine in B2D code that translates the virtual keycode to the Ascii value for that OS language.
|
|
|
Post by u9 on Jul 6, 2007 5:41:52 GMT -5
There is no way of knowing they keyboard layout of the OS in B2D. So this is not really do-able.
|
|