summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'window.h')
-rw-r--r--window.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/window.h b/window.h
index 9bdfc1bce..7e2b9a467 100644
--- a/window.h
+++ b/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,
};