forked from mirror/OpenTTD
(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'
This commit is contained in:
6
window.h
6
window.h
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user