Commit 380f88b3 authored by chili's avatar chili
Browse files

Revert "wheel delta test"

This reverts commit adeb592081b592b75bc64004e06a207eae03c0e5.
parent 83ade354
......@@ -18,7 +18,7 @@
* along with The Chili Direct3D Engine. If not, see <http://www.gnu.org/licenses/>. *
******************************************************************************************/
#include "Window.h"
#include <sstream>
int CALLBACK WinMain(
HINSTANCE hInstance,
......@@ -37,32 +37,6 @@ int CALLBACK WinMain(
// TranslateMessage will post auxilliary WM_CHAR messages from key msgs
TranslateMessage( &msg );
DispatchMessage( &msg );
// test code
static int i = 0;
while( !wnd.mouse.IsEmpty() )
{
const auto e = wnd.mouse.Read();
switch( e.GetType() )
{
case Mouse::Event::Type::WheelUp:
i++;
{
std::ostringstream oss;
oss << "Up: " << i;
wnd.SetTitle( oss.str() );
}
break;
case Mouse::Event::Type::WheelDown:
i--;
{
std::ostringstream oss;
oss << "Down: " << i;
wnd.SetTitle( oss.str() );
}
break;
}
}
}
// 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