diff options
author | frosch <frosch@openttd.org> | 2011-02-05 17:54:36 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-05 17:54:36 +0000 |
commit | e9e644413805479d5db9f16233b112986e9f2c56 (patch) | |
tree | 0250b9221a8879f842d8b9e2c256781e39f0472e /src | |
parent | 82f260e15f7450b319bb4b3fbf5756905fb4edd9 (diff) | |
download | openttd-e9e644413805479d5db9f16233b112986e9f2c56.tar.xz |
(svn r21982) -Add: Wheel scrolling to console.
Diffstat (limited to 'src')
-rw-r--r-- | src/console_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |