Getting char from DIK_xxxxx...?!?
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 <-
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.
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)
http://www.witchlord.com/shortcuts/scan2ascii.asp
Thanks Spellbound, er Witchlord(Keep forgettin)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement