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
43c76ca6
Commit
43c76ca6
authored
Dec 11, 2018
by
chili
Browse files
sexy syskeys
parent
7a4873bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/Window.cpp
View file @
43c76ca6
...
...
@@ -144,12 +144,15 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
/*********** KEYBOARD MESSAGES ***********/
case
WM_KEYDOWN
:
// syskey commands need to be handled to track ALT key (VK_MENU) and F10
case
WM_SYSKEYDOWN
:
if
(
!
(
lParam
&
0x40000000
)
||
kbd
.
AutorepeatIsEnabled
()
)
// filter autorepeat
{
kbd
.
OnKeyPressed
(
static_cast
<
unsigned
char
>
(
wParam
)
);
}
break
;
case
WM_KEYUP
:
case
WM_SYSKEYUP
:
kbd
.
OnKeyReleased
(
static_cast
<
unsigned
char
>
(
wParam
)
);
break
;
case
WM_CHAR
:
...
...
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