diff options
author | truelight <truelight@openttd.org> | 2006-08-21 14:59:58 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-21 14:59:58 +0000 |
commit | a8245983674b253c3eecf44f37acf35a3261763c (patch) | |
tree | 1a79335a7851122f14fcde23385216d03efb72aa /window.h | |
parent | 5ca40263a8cdf469f3a17c74e5147ca0726525ee (diff) | |
download | openttd-a8245983674b253c3eecf44f37acf35a3261763c.tar.xz |
(svn r6038) -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead of a general function that handles that
-Codechange: use always 'e' for WindowsEvent, neverr 'we'
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -141,6 +141,11 @@ union WindowEvent { byte event; Point delta; // delta position against position of last call } scroll; + + struct { + byte event; + int wheel; // how much was 'wheel'd' + } wheel; }; enum WindowKeyCodes { @@ -513,6 +518,7 @@ enum WindowEvents { WE_RESIZE = 22, WE_MESSAGE = 23, WE_SCROLL = 24, + WE_MOUSEWHEEL = 25, }; |