What is the kbhit equivalent for Windows CE?
问题 What is the kbhit equivalent for Windows CE? In particular, I'm wondering about windows CE 6.0. I guess more generally, is there a way to do non-blocking reads from stdin? 回答1: You would need to process the WM_KEYDOWN messages in Windows CE. Have a look here for some details on how to do this. 回答2: If all you're doing is looking for a key, you could poll using GetKeyState or GetAsyncKeySytate. 来源: https://stackoverflow.com/questions/926844/what-is-the-kbhit-equivalent-for-windows-ce