: 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.
#define DIK_U 0x16
(this is for the U key)
if you want more info on how to use this, email at firstname.lastname@example.org