Archived

This topic is now archived and is closed to further replies.

intrest86

DirectInput, Keyboard Input, and all those Constants!

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites