Re: scroll wheel
Re: scroll wheel
- Subject: Re: scroll wheel
- From: Greg Parker <email@hidden>
- Date: Wed, 13 Aug 2003 17:09:43 -0700
On Wednesday, August 13, 2003, at 4:36 PM, Nick Phillips wrote:
On Thursday, August 14, 2003, at 11:18 AM, Markian Hlynka wrote:
Anyway, does anyone know if there's a way to get my scroll wheel
working with xemacs? I would like it to work both with my local (OS
X) copy of xemacs, as well as my remote copies (linux or whatever
over x). Presently, neither one works.
; Mouse wheel
(defun scroll-up-3 ()
"Scroll up 3 lines"
(interactive)
(scroll-up-command 3))
(defun scroll-down-3 ()
"Scroll down 3 lines"
(interactive)
(scroll-down-command 3))
(global-set-key [(shift button5)] 'scroll-up-one)
(global-set-key [(shift button4)] 'scroll-down-one)
(global-set-key [(button5)] 'scroll-up-3)
(global-set-key [(button4)] 'scroll-down-3)
in my ~/.xemacs/init.el works for me.
This works because X11.app translates "scroll wheel move down" to
"click mouse button 4" and "scroll wheel move up" to "click mouse
button 5". If you have five real mouse buttons, then clicking buttons 4
and 5 will also cause scrolling.
I think the XINPUT extension may allow more sophisticated behavior
here, but XDarwin and X11.app don't support XINPUT. However, the
"scroll wheel is buttons 4 and 5" behavior appears to be standard, so
it's likely to work for most systems.
--
Greg Parker email@hidden Java & Objective C
Not an X11.app developer
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.