From 4c43f46e8fae246416726c9efb71cf5e984d2e08 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 30 Aug 2011 21:08:49 +0300 Subject: [PATCH] Fix windows compilation --- source/input/mouse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/input/mouse.cpp b/source/input/mouse.cpp index 476275f..cd89f94 100644 --- a/source/input/mouse.cpp +++ b/source/input/mouse.cpp @@ -1,3 +1,6 @@ +#ifdef WIN32 +#include +#endif #include #include #include @@ -68,7 +71,7 @@ void Mouse::input_event(const Graphics::Window::Event &event) break; case WM_MOUSEWHEEL: { - unsigned btn = (HIWORD(wp)&0x8000) ? 5 : 4; + unsigned btn = (HIWORD(event.wparam)&0x8000) ? 5 : 4; set_button_state(btn, true, true); set_button_state(btn, false, true); } -- 2.43.0