DirectInput key lookup function? [Archive] - C Board

PDA

View Full Version : DirectInput key lookup function?


Arrow Mk 84
12-09-2002, 07:58 PM
Does anyone know if a function exists in DirectInput where I can input an ascii character (or array, in the case of caps lock, etc.) and get a return value of the matching key's DIK code?

Basically, I want to do is read in a config file with key bindings, look up the key for that action and then assign its DIK to that functionality.

Thanks,
Arrow

master5001
12-09-2002, 11:23 PM
Why use DirectInput for that? Just use WM_KEY* in your callback function.

Arrow Mk 84
12-10-2002, 05:37 AM
Because my program already uses DirectInput, and I found to be much better suited to purpose and easier to use than writting a Win32 callback.

So, does anyone know if this function exists or will I have to make up a switch/if/elseif to this manually?