Commit b525461b authored by chili's avatar chili
Browse files

Revert "test mouse input system"

This reverts commit 86cd5dff.
parent 86cd5dff
......@@ -18,7 +18,6 @@
* along with The Chili Direct3D Engine. If not, see <http://www.gnu.org/licenses/>. *
******************************************************************************************/
#include "Window.h"
#include <sstream>
int CALLBACK WinMain(
......@@ -38,18 +37,6 @@ int CALLBACK WinMain(
// TranslateMessage will post auxilliary WM_CHAR messages from key msgs
TranslateMessage( &msg );
DispatchMessage( &msg );
// do app logic (test)
while( !wnd.mouse.IsEmpty() )
{
const auto e = wnd.mouse.Read();
if( e.GetType() == Mouse::Event::Type::Move )
{
std::ostringstream oss;
oss << "Mouse Position: (" << e.GetPosX() << "," << e.GetPosY() << ")";
wnd.SetTitle( oss.str() );
}
}
}
// check if GetMessage call itself borked
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment