summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-02-05 17:54:36 +0000
committerfrosch <frosch@openttd.org>2011-02-05 17:54:36 +0000
commite9e644413805479d5db9f16233b112986e9f2c56 (patch)
tree0250b9221a8879f842d8b9e2c256781e39f0472e /src
parent82f260e15f7450b319bb4b3fbf5756905fb4edd9 (diff)
downloadopenttd-e9e644413805479d5db9f16233b112986e9f2c56.tar.xz
(svn r21982) -Add: Wheel scrolling to console.
Diffstat (limited to 'src')
-rw-r--r--src/console_gui.cpp5
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;