Variable: mouse-wheel-buttons

mouse-wheel-buttons is a customizable variable defined in mouse.el.gz.

Value

((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right))

Documentation

How to remap mouse button numbers to wheel events.

This is an alist of (NUMBER . SYMBOL) used to remap old-style mouse wheel events represented as mouse button events. It remaps mouse button NUMBER to the event SYMBOL. SYMBOL must be one of wheel-up, wheel-down, wheel-left, or wheel-right. This is used only for events that come from sources known to generate such events, such as X11 events when XInput2 is not used, or events coming from a text terminal.

This variable was added, or its default value changed, in Emacs 30.1.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defcustom mouse-wheel-buttons
  '((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right))
  "How to remap mouse button numbers to wheel events.
This is an alist of (NUMBER . SYMBOL) used to remap old-style mouse wheel
events represented as mouse button events.  It remaps mouse button
NUMBER to the event SYMBOL.  SYMBOL must be one of `wheel-up', `wheel-down',
`wheel-left', or `wheel-right'.
This is used only for events that come from sources known to generate such
events, such as X11 events when XInput2 is not used, or events coming from
a text terminal."
  :type '(alist)
  :version "30.1")