Jump to content
  • Advertisement

Archived

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

VI2

Console -> Capturing KB Input

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

Hey guys, I''m trying to write a new console for my app and I wanted to know what the best method for capturing KB input was. I tried using the DInput but because of the way it works, I sometimes get keyrepeats or delays. I like to setup so that its just like a text app... where one key press is one letter... with a slight delay b4 key repeating... Its built into windows so how do I apply it to my app?

Share this post


Link to post
Share on other sites
Advertisement
If your only developing for windows...

I would suggest using the WM_CHAR messages in your Windows Procdure function (commonly called WindowProc).

Check for the message, then cast the WPARAM parameter into a TCHAR to get the character pressed in by the user. The input should act like windows does with typing...
Hope it helps...

Destroyer

Share this post


Link to post
Share on other sites

  • 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!