diff options
author | McCabe Maxsted | 2011-03-09 20:37:53 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-03-09 20:37:53 -0700 |
commit | 16ce373d14199b94729caffcb099d8a6bd37f882 (patch) | |
tree | bd513a4f6107d57f7f7a5fe1552852f8fccc277f /linden/indra/llwindow/llwindowwin32.cpp | |
parent | Fixed windows compile error (diff) | |
download | meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.zip meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.tar.gz meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.tar.bz2 meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.tar.xz |
#787: Horizontal mouse scrolling support, patch by Kakurady Drakenar
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llwindow/llwindowwin32.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llwindowwin32.cpp b/linden/indra/llwindow/llwindowwin32.cpp index 7bc9a3b..dacee34 100644 --- a/linden/indra/llwindow/llwindowwin32.cpp +++ b/linden/indra/llwindow/llwindowwin32.cpp | |||
@@ -2259,6 +2259,22 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_ | |||
2259 | } | 2259 | } |
2260 | return 0; | 2260 | return 0; |
2261 | } | 2261 | } |
2262 | #ifdef WM_MOUSEHWHEEL | ||
2263 | case WM_MOUSEHWHEEL: | ||
2264 | { | ||
2265 | window_imp->mCallbacks->handlePingWatchdog(window_imp, "Main:WM_MOUSEHWHEEL"); | ||
2266 | static short z_delta = 0; | ||
2267 | |||
2268 | z_delta += HIWORD(w_param); | ||
2269 | |||
2270 | if (z_delta <= -WHEEL_DELTA || WHEEL_DELTA <= z_delta) | ||
2271 | { | ||
2272 | window_imp->mCallbacks->handleHScrollWheel(window_imp, z_delta / WHEEL_DELTA); | ||
2273 | z_delta = 0; | ||
2274 | } | ||
2275 | return 0; | ||
2276 | } | ||
2277 | #endif //WM_MOUSEHWHEEL | ||
2262 | /* | 2278 | /* |
2263 | // TODO: add this after resolving _WIN32_WINNT issue | 2279 | // TODO: add this after resolving _WIN32_WINNT issue |
2264 | case WM_MOUSELEAVE: | 2280 | case WM_MOUSELEAVE: |