DirectInput, Keyboard Input, and all those Constants!

Started by
1 comment, last by intrest86 22 years, 3 months ago
When accepting input from the keyboard, is there anyway for me to know the value of the keys without making one giant function for finding the values of the key number?
Turring Machines are better than C++ any day ^_~
Advertisement
Make a matrix man, or a vector use DIK_ESC etc as index into it and get the plain ascii code from it... or place pointers to handler functions there

i guess this will avoid a monster switch case function
obysoft
Since you''re using c_dfDIKeyboard as the data format, using GetDeviceState() requires the second parameter to be an array of 256 bytes.

Invader X
Invader''s Realm

This topic is closed to new replies.

Advertisement