aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2004-10-24 21:39:41 +0000
committerJason Rumney2004-10-24 21:39:41 +0000
commitd2fab890f458074006a175d72728f3e8a0e8da3f (patch)
treede2bb240ff241bb1ff095dbd9a2302f3127a752c
parentb0915a3104ef1167e4b2a4cd570e996d836b9654 (diff)
downloademacs-d2fab890f458074006a175d72728f3e8a0e8da3f.tar.gz
emacs-d2fab890f458074006a175d72728f3e8a0e8da3f.zip
Removed mouse-wheel event, added wheel-up and wheel-down
event, with a note about how to use mwheel.el to handle both these events and mouse-4 and mouse-5 events.
-rw-r--r--lispref/commands.texi21
1 files changed, 10 insertions, 11 deletions
diff --git a/lispref/commands.texi b/lispref/commands.texi
index 5f0a73b2153..299c7bb61af 100644
--- a/lispref/commands.texi
+++ b/lispref/commands.texi
@@ -1501,21 +1501,20 @@ This kind of event indicates that the user deiconified @var{frame} using
1501the window manager. Its standard definition is @code{ignore}; since the 1501the window manager. Its standard definition is @code{ignore}; since the
1502frame has already been made visible, Emacs has no work to do. 1502frame has already been made visible, Emacs has no work to do.
1503 1503
1504@cindex @code{mouse-wheel} event 1504@cindex @code{wheel-up} event
1505@item (mouse-wheel @var{position} @var{delta}) 1505@cindex @code{wheel-down} event
1506This kind of event is generated by moving a wheel on a mouse (such as 1506@item (wheel-up @var{position})
1507the MS Intellimouse). Its effect is typically a kind of scroll or zoom. 1507@item (wheel-down @var{position})
1508 1508This kind of event is generated by moving a wheel on a mouse. Its
1509The element @var{delta} describes the amount and direction of the wheel 1509effect is typically a kind of scroll or zoom.
1510rotation. Its absolute value is the number of increments by which the
1511wheel was rotated. A negative @var{delta} indicates that the wheel was
1512rotated backwards, towards the user, and a positive @var{delta}
1513indicates that the wheel was rotated forward, away from the user.
1514 1510
1515The element @var{position} is a list describing the position of the 1511The element @var{position} is a list describing the position of the
1516event, in the same format as used in a mouse-click event. 1512event, in the same format as used in a mouse-click event.
1517 1513
1518This kind of event is generated only on some kinds of systems. 1514This kind of event is generated only on some kinds of systems. On
1515other systems, mouse-4 and mouse-5 may be used instead. For portable
1516code, the variables @code{mouse-wheel-up-event} and
1517@code{mouse-wheel-down-event} defined in @file{mwheel.el} can be used.
1519 1518
1520@cindex @code{drag-n-drop} event 1519@cindex @code{drag-n-drop} event
1521@item (drag-n-drop @var{position} @var{files}) 1520@item (drag-n-drop @var{position} @var{files})