aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
authorMax Horn2002-10-16 20:32:12 +0000
committerMax Horn2002-10-16 20:32:12 +0000
commitb1766c28b276e102bed83652c467df9db270b3ac (patch)
tree238986ad281e0864aa46979c0f8bf40c950019ea /gui/newgui.cpp
parentd5bcb63f829f4c4aecd45cb60e492ca896ad77a5 (diff)
downloadscummvm-rg350-b1766c28b276e102bed83652c467df9db270b3ac.tar.gz
scummvm-rg350-b1766c28b276e102bed83652c467df9db270b3ac.tar.bz2
scummvm-rg350-b1766c28b276e102bed83652c467df9db270b3ac.zip
patch #620627: mouse wheel support for NewGui
svn-id: r5169
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 61f50e2b72..ffe8d503cc 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -169,6 +169,12 @@ void NewGui::runLoop()
case OSystem::EVENT_RBUTTONUP:
activeDialog->handleMouseUp(event.mouse.x - activeDialog->_x, event.mouse.y - activeDialog->_y, 1, _lastClick.count);
break;
+ case OSystem::EVENT_WHEELUP:
+ activeDialog->handleMouseWheel(event.mouse.x - activeDialog->_x, event.mouse.y - activeDialog->_y, -1);
+ break;
+ case OSystem::EVENT_WHEELDOWN:
+ activeDialog->handleMouseWheel(event.mouse.x - activeDialog->_x, event.mouse.y - activeDialog->_y, 1);
+ break;
}
}