Commit 06326223 authored by chili's avatar chili
Browse files

Revert "test mouse optional event sys"

This reverts commit 7dccdd3a.
parent 7dccdd3a
#include "App.h" #include "App.h"
#include <sstream>
App::App() App::App()
: :
...@@ -22,20 +21,6 @@ int App::Go() ...@@ -22,20 +21,6 @@ int App::Go()
void App::DoFrame() void App::DoFrame()
{ {
while( const auto e = wnd.mouse.Read() )
{
switch( e->GetType() )
{
case Mouse::Event::Type::Move:
{
std::ostringstream oss;
oss << "Mouse moved to: (" << e->GetPosX() << "," << e->GetPosY() << ")\n";
wnd.SetTitle( oss.str() );
break;
}
}
}
const float c = sin( timer.Peek() ) / 2.0f + 0.5f; const float c = sin( timer.Peek() ) / 2.0f + 0.5f;
wnd.Gfx().ClearBuffer( c,c,1.0f ); wnd.Gfx().ClearBuffer( c,c,1.0f );
wnd.Gfx().DrawTestTriangle(); wnd.Gfx().DrawTestTriangle();
......
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