forked from misakamm/xege
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: 修复 keystate 在打开对话框后失效的问题 (#212)
使用 GetOpenFileName 等打开对话框后,keystate 失效,但按键消息正常。原因是 GetKeyState 是通过处理按键消息来判断按键状态,需要在消息队列的窗口线程中使用。(如果在其它线程,猜测目前的底层实现是会获取最新创建的一个窗口线程的按键状态,因此一开始未打开对话框时是正常的。)。 chore: 忽略 ./out 目录 (Visual Studio Cmake生成目录)
- Loading branch information
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
|
||
/build | ||
/temp | ||
/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters