An easy version of "cout" for win 32
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
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.
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.
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
---
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement