summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-21 14:34:59 +0000
committertruelight <truelight@openttd.org>2006-08-21 14:34:59 +0000
commit9ec2fdcbf3c6a7be52e714c4086fa8e09082b2d3 (patch)
tree9114619f0346a37ef440c8665a23d7f0e5955b44 /window.h
parent323a3160f7d4ad69e2472e7f94f0b1de0e39a98f (diff)
downloadopenttd-9ec2fdcbf3c6a7be52e714c4086fa8e09082b2d3.tar.xz
(svn r6036) -Codechange: do not handle SCROLL in a central function, but let windows handle them theirself. Added WE_SCROLL for this.
Diffstat (limited to 'window.h')
-rw-r--r--window.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/window.h b/window.h
index 6dff1d967..9bdfc1bce 100644
--- a/window.h
+++ b/window.h
@@ -136,6 +136,11 @@ union WindowEvent {
uint wparam; // additional message-specific information
uint lparam; // additional message-specific information
} message;
+
+ struct {
+ byte event;
+ Point delta; // delta position against position of last call
+ } scroll;
};
enum WindowKeyCodes {
@@ -506,7 +511,8 @@ enum WindowEvents {
WE_MOUSEOVER = 20,
WE_ON_EDIT_TEXT_CANCEL = 21,
WE_RESIZE = 22,
- WE_MESSAGE = 23
+ WE_MESSAGE = 23,
+ WE_SCROLL = 24,
};