comparison src/termhooks.h @ 19700:3c251b1dcdf5

(event_kind) [WINDOWSNT]: New event type: mouse_wheel.
author Geoff Voelker <voelker@cs.washington.edu>
date Wed, 03 Sep 1997 00:37:29 +0000
parents 481b7874a1e9
children fb4c986db0e2
comparison
equal deleted inserted replaced
19699:ce0b47a57e23 19700:3c251b1dcdf5
232 in characters, within the window. 232 in characters, within the window.
233 .frame_or_window gives the frame 233 .frame_or_window gives the frame
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
240 keys. 257 keys.
241 .part is a lisp symbol indicating which 258 .part is a lisp symbol indicating which
282 int kind; 299 int kind;
283 300
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
290 int modifiers; /* See enum below for interpretation. */ 308 int modifiers; /* See enum below for interpretation. */
291 309