From e9e644413805479d5db9f16233b112986e9f2c56 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 5 Feb 2011 17:54:36 +0000 Subject: (svn r21982) -Add: Wheel scrolling to console. --- src/console_gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/console_gui.cpp b/src/console_gui.cpp index c01342198..c698d7257 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -342,6 +342,11 @@ struct IConsoleWindow : Window } return ES_HANDLED; } + + virtual void OnMouseWheel(int wheel) + { + this->Scroll(-wheel); + } }; int IConsoleWindow::scroll = 0; -- cgit v1.2.3-70-g09d2