Jump to content
  • Advertisement

Archived

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

TheTempest

An easy version of "cout" for win 32

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

Hi all, Does anyone happen to know of an easy way to retrive keystrokes using win32. I''ve tried directInput, and it compiles fine, but when the program runs, the program crashes due to a "unhandled exception" fault. and i know this may be asking a bit much, but if anyone knows a good "cin" lib too that would just make my day thx for the time

Share this post


Link to post
Share on other sites
Advertisement
Win32 console applications can use cin and cout.
Otherwise, search the msdn libraries
http://search.microsoft.com/us/dev/?MSCOMTB=ICP_SEARCH%20MSDN

and I think the function is GetAsyncKeyState if you don''t want to use a console application.

Share this post


Link to post
Share on other sites
Check for my reply in this thread. It will solve your problem and is easier than using DirectInput.

---
Make it work.
Make it fast.

"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!