summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1997-09-03 00:37:29 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1997-09-03 00:37:29 +0000
commita34bc560b857e84cdc3fc8c320604491397773ea (patch)
tree3564efddba73af04fdd6a03a79936a74c480a028 /src
parent86e2f0a0d3e4894360c957ae528f281b1ef414c9 (diff)
downloademacs-a34bc560b857e84cdc3fc8c320604491397773ea.tar.gz
(event_kind) [WINDOWSNT]: New event type: mouse_wheel.
Diffstat (limited to 'src')
-rw-r--r--src/termhooks.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index 984c4284ec1..431b183f8df 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -234,6 +234,23 @@ enum event_kind
the mouse click occurred in.
.timestamp gives a timestamp (in
milliseconds) for the click. */
+#ifdef WINDOWSNT
+ mouse_wheel, /* A mouse-wheel event is generated by a
+ wheel on a mouse (e.g., MS Intellimouse).
+ The event contains a delta that corresponds
+ to the amount and direction that the wheel
+ is rotated. This delta is typically
+ used to implement a scroll or zoom.
+ .code gives the delta.
+ .modifiers holds the state of the
+ modifier keys.
+ .x and .y give the mouse position,
+ in characters, within the window.
+ .frame_or_window gives the frame
+ the wheel event occurred in.
+ .timestamp gives a timestamp (in
+ milliseconds) for the wheel event. */
+#endif
scroll_bar_click, /* .code gives the number of the mouse button
that was clicked.
.modifiers holds the state of the modifier
@@ -284,6 +301,7 @@ struct input_event
/* For an ascii_keystroke, this is the character.
For a non_ascii_keystroke, this is the keysym code.
For a mouse event, this is the button number. */
+ /* In WindowsNT, for a mouse wheel event, this is the delta. */
int code;
enum scroll_bar_part part;