diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-02-19 05:32:28 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-02-19 05:32:28 +0000 |
commit | 52003cd2864141115febc41ff7c01640c5e18f23 (patch) | |
tree | 42b3d9ec585450e33bb2a7be7dc3397934b6339f /guilib/GUISpinControl.cpp | |
parent | c0a440b769df511230e24f852720c53cfee9aefe (diff) |
changed: Split up ACTION_MOUSE_WHEEL into ACTION_MOUSE_WHEEL_UP/ACTION_MOUSE_WHEEL_DOWN
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27965 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUISpinControl.cpp')
-rw-r--r-- | guilib/GUISpinControl.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/guilib/GUISpinControl.cpp b/guilib/GUISpinControl.cpp index 59676da085..10751ee124 100644 --- a/guilib/GUISpinControl.cpp +++ b/guilib/GUISpinControl.cpp @@ -871,12 +871,14 @@ bool CGUISpinControl::OnMouseEvent(const CPoint &point, const CMouseEvent &event MoveDown(); return true; } - else if (event.m_id == ACTION_MOUSE_WHEEL) + else if (event.m_id == ACTION_MOUSE_WHEEL_UP) { - if (event.m_wheel > 0) - MoveUp(); - else - MoveDown(); + MoveUp(); + return true; + } + else if (event.m_id == ACTION_MOUSE_WHEEL_DOWN) + { + MoveDown(); return true; } return false; |