且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查是否同时按下了两个键

更新时间:2023-12-03 08:49:10

看看 ^ ]或 GetKeyState [^ ]

该组合永远不会存储在您的MSG结构中.因此,如果以上内容不适合您,您将不得不查找两条消息,一条消息传递给A,一条消息传递给1.
Have a look at GetAsyncKeyState[^] or GetKeyState[^]

The combination is never stored in your MSG struct. So if the above doesn''t cut it for you, you will have to look for two messages, one for A and one for 1.