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
e08532b0
Commit
e08532b0
authored
Jul 01, 2019
by
chili
Browse files
remove logging
parent
a8fd13a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/Window.cpp
View file @
e08532b0
...
...
@@ -246,19 +246,16 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
kbd
.
ClearState
();
break
;
case
WM_ACTIVATE
:
OutputDebugString
(
"activeate
\n
"
);
// confine/free cursor on window to foreground/background if cursor disabled
if
(
!
cursorEnabled
)
{
if
(
wParam
&
WA_ACTIVE
)
{
OutputDebugString
(
"activeate => confine
\n
"
);
ConfineCursor
();
HideCursor
();
}
else
{
OutputDebugString
(
"activeate => free
\n
"
);
FreeCursor
();
ShowCursor
();
}
...
...
@@ -349,7 +346,6 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
SetForegroundWindow
(
hWnd
);
if
(
!
cursorEnabled
)
{
OutputDebugString
(
"lclick => recapture
\n
"
);
ConfineCursor
();
HideCursor
();
}
...
...
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