which macro function do i grab if i want to test the keyboard
buffer for a character, but continue if the buffer is empty ?
i just want to poll the keyboard to see if a key has been pressed
EDIT - got it
i used crt__kbhit
Dave,
That one works fine but there is an alternative if you could be bothered playing with it, the API GetAsynchKeyState() and a few others like it can also be useful.
Thank you Hutch
i prefer not you use the crt library if possible
i will look into that one
i tried playing with a couple API's, but had no luck
(GetLastInputInfo looked promising)
If it's a console app, you can use peekconsoleinput
Thanks Jim
that one looks pretty complicated for a simple poll - lol
(a lot of parameters)
but i like it - it will get rid of the crt call