Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ab8f1008
Commit
ab8f1008
authored
Sep 03, 1997
by
Geoff Voelker
Browse files
(event_kind) [WINDOWSNT]: New event type: mouse_wheel.
parent
ad00c243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/termhooks.h
src/termhooks.h
+18
-0
No files found.
src/termhooks.h
View file @
ab8f1008
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment