Converting Direct Input to ASCII

Started by
3 comments, last by Sneftel 17 years, 10 months ago
hello all. I understand that directx mapping is different. Keys are mapped from 0 to 255 when key 0 is escape key. What I don't understand is that how can I convert, for example DIK_A key to simple 'a' ASCII value. Can somebody help me? Thanks in advance
Advertisement
Did you try the code in this article?
Quote:Original post by SiCrane
Did you try the code in this article?


eh [smile] I didn't notice that. thank you.
Note that using DInput won't work for special character sequences, such as these. For proper international support you're best using Windows messages, and using DInput for non-text input (jump, move, shoot, weapon change, gas, brake, etc..)
Quote:Original post by Namethatnobodyelsetook
Note that using DInput won't work for special character sequences, such as these. For proper international support you're best using Windows messages, and using DInput for non-text input (jump, move, shoot, weapon change, gas, brake, etc..)

QFE. DInput is designed to step aside gracefully when you're doing text entry. Don't shoehorn it into handling tasks it wasn't meant for.

This topic is closed to new replies.

Advertisement