Skip to main content
gamedev.net
🔒 Locked

kbhit( ) ?

Started by ju2wheels 4 replies 550+ views
Original Post
ju2wheels
ju2wheels
When I was reading a thread the other day I saw someone use the kbhit( ) function. Does this function leave the character of the key pressed in the input buffer? What header is this function in?
i8degrees
i8degrees
Is kbhit () an ANSI standard? His compiler might not support it, GCC''s conio.h doesn''t have the kbhit function in it.
"I am governed by none other than the Laws of the Universe."
NickW
NickW
Nothing in conio.h is standard

it''s all DOS console stuff
Dredge-Master
Dredge-Master
jsut as a side note, sometimes you can find a similar function called bioskey().

This one can be configured to act like kbhit, getch and (I think this is the third one) getche.

Header file was bios.h if I remember correctly. Was under Borland. Extremely doubt it is under any standard apart from borland.




Beer - the love catalyst
good ol'' homepage
Beer - the love catalystgood ol' homepage

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.