]> git.tdb.fi Git - libs/gui.git/commitdiff
Fix mouse buttons on Windows
authorMikko Rasa <tdb@tdb.fi>
Sat, 1 Dec 2012 09:54:57 +0000 (11:54 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 1 Dec 2012 09:54:57 +0000 (11:54 +0200)
source/input/mouse.cpp

index fce870f23aaf367b54155b55f5b9af82b0b51ac3..2337f70f5aa86139be1b803c3bc6e9385d581adc 100644 (file)
@@ -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:
                {