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
3ecad19e
Commit
3ecad19e
authored
Jun 01, 2003
by
Jason Rumney
Browse files
(enum event_kind): Added new WHEEL_EVENT event.
Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
parent
637ad49d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
src/termhooks.h
src/termhooks.h
+21
-8
No files found.
src/termhooks.h
View file @
3ecad19e
...
...
@@ -240,14 +240,27 @@ enum event_kind
the mouse click occurred in.
.timestamp gives a timestamp (in
milliseconds) for the click. */
#if defined(WINDOWSNT) || defined(MAC_OSX)
MOUSE_WHEEL_EVENT
,
/* A mouse-wheel event is generated
on WINDOWSNT or MAC_OSX 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.
WHEEL_EVENT
,
/* A wheel event is generated by a
wheel on a mouse (e.g., MS
Intellimouse).
.modifiers holds the rotate
direction (up or down), and 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 event. */
#if defined(MAC_OSX)
MOUSE_WHEEL_EVENT
,
/* A mouse-wheel event is generated on
MAC_OSX 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.
...
...
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