aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeoff Voelker1997-09-03 00:37:29 +0000
committerGeoff Voelker1997-09-03 00:37:29 +0000
commitab8f100801965f815764803c3befaf58e4ab96d7 (patch)
tree31265cc9c31ab1b8fd00fe1777fffe3dcdd12af4 /src
parentad00c243fd85353e059d97c3001b261fa8aa0dd0 (diff)
downloademacs-ab8f100801965f815764803c3befaf58e4ab96d7.tar.gz
emacs-ab8f100801965f815764803c3befaf58e4ab96d7.zip
(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
234 the mouse click occurred in. 234 the mouse click occurred in.
235 .timestamp gives a timestamp (in 235 .timestamp gives a timestamp (in
236 milliseconds) for the click. */ 236 milliseconds) for the click. */
237#ifdef WINDOWSNT
238 mouse_wheel, /* A mouse-wheel event is generated by a
239 wheel on a mouse (e.g., MS Intellimouse).
240 The event contains a delta that corresponds
241 to the amount and direction that the wheel
242 is rotated. This delta is typically
243 used to implement a scroll or zoom.
244 .code gives the delta.
245 .modifiers holds the state of the
246 modifier keys.
247 .x and .y give the mouse position,
248 in characters, within the window.
249 .frame_or_window gives the frame
250 the wheel event occurred in.
251 .timestamp gives a timestamp (in
252 milliseconds) for the wheel event. */
253#endif
237 scroll_bar_click, /* .code gives the number of the mouse button 254 scroll_bar_click, /* .code gives the number of the mouse button
238 that was clicked. 255 that was clicked.
239 .modifiers holds the state of the modifier 256 .modifiers holds the state of the modifier
@@ -284,6 +301,7 @@ struct input_event
284 /* For an ascii_keystroke, this is the character. 301 /* For an ascii_keystroke, this is the character.
285 For a non_ascii_keystroke, this is the keysym code. 302 For a non_ascii_keystroke, this is the keysym code.
286 For a mouse event, this is the button number. */ 303 For a mouse event, this is the button number. */
304 /* In WindowsNT, for a mouse wheel event, this is the delta. */
287 int code; 305 int code;
288 enum scroll_bar_part part; 306 enum scroll_bar_part part;
289 307