From: Mikko Rasa Date: Sat, 1 Dec 2012 09:54:57 +0000 (+0200) Subject: Fix mouse buttons on Windows X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=695afa5452a1b1a0219badf6ac1c4183b1eefc15;p=libs%2Fgui.git Fix mouse buttons on Windows --- diff --git a/source/input/mouse.cpp b/source/input/mouse.cpp index fce870f..2337f70 100644 --- a/source/input/mouse.cpp +++ b/source/input/mouse.cpp @@ -62,11 +62,11 @@ void Mouse::input_event(const Graphics::Window::Event &event) break; case WM_MBUTTONDOWN: case WM_MBUTTONUP: - set_button_state(2, event.msg==WM_LBUTTONDOWN, true); + set_button_state(2, event.msg==WM_MBUTTONDOWN, true); break; case WM_RBUTTONDOWN: case WM_RBUTTONUP: - set_button_state(3, event.msg==WM_LBUTTONDOWN, true); + set_button_state(3, event.msg==WM_RBUTTONDOWN, true); break; case WM_MOUSEWHEEL: {