   DirectInput getting key string !?
  Hi, (sorry for my english)I dont know if we can do this, but I want to get a string value that contain what is the key to show it to the player.Exemple :I have an int, that is my key.I want to show it to the player like :Jump SpaceShootRight ControlFoward    Wetc...I can test it with a lot of if like :if (key == DIK_SPACE) return "Space";if (key == DIK_RCONTROL) return "RControl";if (key == DIK_W) return "W";// etc...// That can be a messSo I wonder if a function in DirectInput can do this for me like :diGetKeyString(int key, char * LPStr, int size);Thanks   
  drew_benton recently posted a link to this thread. Seems to cover what you're looking for [smile]Cheers,Jack   ;  Hum ok thanks :)Its not exactly what I was looking for, but I think I will make an predefined array with all the string stored in for each language...My question was not about key code, but what the key is in string :P   ;  Have a look at this thread. It shows how to convert a DIK to it's corresponding string name without hard-coding tables.   ;  Ho thank :D !!   