Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
hw3d
Commits
1466aa84
Commit
1466aa84
authored
Dec 11, 2018
by
chili
Browse files
clear keystate on focus loss
parent
5f700ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/Window.cpp
View file @
1466aa84
...
...
@@ -137,6 +137,10 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
case
WM_CLOSE
:
PostQuitMessage
(
0
);
return
0
;
// clear keystate when window loses focus to prevent input getting "stuck"
case
WM_KILLFOCUS
:
kbd
.
ClearState
();
break
;
/*********** KEYBOARD MESSAGES ***********/
case
WM_KEYDOWN
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment