Archived

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

Getting char from DIK_xxxxx...?!?

This topic is 6388 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Good day comrades... This seems like it should be exceedingly simple. Often times it seems like I get stuck on the exceedingly simple...but that''s another story. Ok, all I want to know is, how do I get the ASCII char from, for example, DIK_A. All I want is the value 65 for this. How exactly does one go about doing this? Short of a MASSIVE if or case statement, I am stuck. Has anyone been down this road before? Thanks, -> Briar LoDeran <-

Share this post


Link to post
Share on other sites
There is realy no reason to get an ASCII state with direct input. You can do anything you want by using the integer associated with the DIK value.

Share this post


Link to post
Share on other sites
I was down the same road. I was using DINPUT for my console. Though found Windows Messages Fast Enough, and Easier for text than Dinput. Yet, heres the link I did it from:
http://www.witchlord.com/shortcuts/scan2ascii.asp
Thanks Spellbound, er Witchlord(Keep forgettin)

Share this post


Link to post
Share on other sites