Console Keyboard hit detection and interpretting

后端 未结 3 1785
天涯浪人
天涯浪人 2021-01-25 14:22

Hey so it\'s been reccomended to me that i should use the kdhit() function to detect a keypress in a console window:

\"If it\'s Windows, the kbhit( ) function is the guy

3条回答
  •  不知归路
    2021-01-25 14:27

    Very usefull is GetAsyncKeyState

    Check it out http://msdn.microsoft.com/en-us/library/ms646293%28v=vs.85%29.aspx

提交回复
热议问题