diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-01-01 17:40:20 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-01-01 17:40:20 +0100 |
commit | 19136bce2c197943fa2c7476fe5b75edc87d6ac4 (patch) | |
tree | 332145929e87a15ee2142279edf85fd7a227a398 /plugingui/nativewindow_win32.cc | |
parent | a5a07b092bec2e3ff870048c8bf0cf8555e7aca0 (diff) |
Fix button (right, left, middle) event on clicks on Windows.
Diffstat (limited to 'plugingui/nativewindow_win32.cc')
-rw-r--r-- | plugingui/nativewindow_win32.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index f2094af..9e80be0 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -136,16 +136,16 @@ LRESULT CALLBACK NativeWindowWin32::dialogProc(HWND hwnd, UINT msg, { buttonEvent->button = MouseButton::left; } - else if(msg == WM_RBUTTONUP || - msg == WM_RBUTTONDBLCLK || - msg == WM_RBUTTONDOWN) - { - buttonEvent->button = MouseButton::middle; - } else if(msg == WM_MBUTTONUP || msg == WM_MBUTTONDBLCLK || msg == WM_MBUTTONDOWN) { + buttonEvent->button = MouseButton::middle; + } + else if(msg == WM_RBUTTONUP || + msg == WM_RBUTTONDBLCLK || + msg == WM_RBUTTONDOWN) + { buttonEvent->button = MouseButton::right; } else |