Jump to content
  • Advertisement
Sign in to follow this  
streamer

Converting Direct Input to ASCII

This topic is 4424 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

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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!