What is the kbhit equivalent for Windows CE?

老子叫甜甜 提交于 2019-12-22 23:16:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!