aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llwindowsdl.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-03-09 20:37:53 -0700
committerMcCabe Maxsted2011-03-09 20:37:53 -0700
commit16ce373d14199b94729caffcb099d8a6bd37f882 (patch)
treebd513a4f6107d57f7f7a5fe1552852f8fccc277f /linden/indra/llwindow/llwindowsdl.cpp
parentFixed windows compile error (diff)
downloadmeta-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 'linden/indra/llwindow/llwindowsdl.cpp')
-rw-r--r--linden/indra/llwindow/llwindowsdl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/llwindow/llwindowsdl.cpp b/linden/indra/llwindow/llwindowsdl.cpp
index f7d7587..edfe33b 100644
--- a/linden/indra/llwindow/llwindowsdl.cpp
+++ b/linden/indra/llwindow/llwindowsdl.cpp
@@ -1731,7 +1731,10 @@ void LLWindowSDL::gatherInput()
1731 mCallbacks->handleScrollWheel(this, -1); 1731 mCallbacks->handleScrollWheel(this, -1);
1732 else if (event.button.button == 5) // mousewheel down...thanks to X11 for making SDL consider these "buttons". 1732 else if (event.button.button == 5) // mousewheel down...thanks to X11 for making SDL consider these "buttons".
1733 mCallbacks->handleScrollWheel(this, 1); 1733 mCallbacks->handleScrollWheel(this, 1);
1734 1734 else if (event.button.button == 6)
1735 mCallbacks->handleHScrollWheel(this, -1);
1736 else if (event.button.button == 7)
1737 mCallbacks->handleHScrollWheel(this, 1);
1735 break; 1738 break;
1736 } 1739 }
1737 1740