DInput and Keycodes

How can i translate the pressed keys i got with GetDeviceState() into the correct ASCII/Unicode (Unicode preferred) equivalent using the current local settings. Is there an other way than defining all characters for each language ?

Comments

  • : How can i translate the pressed keys i got with GetDeviceState() into the correct ASCII/Unicode (Unicode preferred) equivalent using the current local settings. Is there an other way than defining all characters for each language ?
    :
    if you look in the dx sdk in dinput.h, you will find the definitions for all of the keys.

    example
    #define DIK_U 0x16
    (this is for the U key)
    if you want more info on how to use this, email at nr_7286@hotmail.com
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion