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
524925dd
Commit
524925dd
authored
Dec 24, 2018
by
chili
Browse files
Revert "test stuff"
This reverts commit 125ccf1519474591851fba614c9c0f94ed95c3ae.
parent
5fdf7c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/WinMain.cpp
View file @
524925dd
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
* along with The Chili Direct3D Engine. If not, see <http://www.gnu.org/licenses/>. *
* along with The Chili Direct3D Engine. If not, see <http://www.gnu.org/licenses/>. *
******************************************************************************************/
******************************************************************************************/
#include "Window.h"
#include "Window.h"
#include <sstream>
int
CALLBACK
WinMain
(
int
CALLBACK
WinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hInstance
,
...
@@ -37,25 +37,6 @@ int CALLBACK WinMain(
...
@@ -37,25 +37,6 @@ int CALLBACK WinMain(
// TranslateMessage will post auxilliary WM_CHAR messages from key msgs
// TranslateMessage will post auxilliary WM_CHAR messages from key msgs
TranslateMessage
(
&
msg
);
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
// test code
while
(
!
wnd
.
mouse
.
IsEmpty
()
)
{
const
auto
e
=
wnd
.
mouse
.
Read
();
switch
(
e
.
GetType
()
)
{
case
Mouse
::
Event
::
Type
::
Leave
:
wnd
.
SetTitle
(
"Gone!"
);
break
;
case
Mouse
::
Event
::
Type
::
Move
:
{
std
::
ostringstream
oss
;
oss
<<
"Mouse moved to ("
<<
e
.
GetPosX
()
<<
","
<<
e
.
GetPosY
()
<<
")"
;
wnd
.
SetTitle
(
oss
.
str
()
);
}
break
;
}
}
}
}
// check if GetMessage call itself borked
// check if GetMessage call itself borked
...
...
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