[ltp] click-to-scroll in X (at least in netscape...)
Michael Kroh
linux-thinkpad@www.bm-soft.com
Mon, 13 Nov 2000 19:59:26 -0600 (CST)
Hi there. I'm kinda' new to this mailing list, and I think this is the
first time I've ever posted here - at least in recent history... So I'm
not sure if this has ever really been covered before, but well, enough
with the disclaimer, here goes:
So I have this wonderful A20m (2628-3SU) and I've got linux on 10Gb
(win98se on the other 2 - I have to for work...) and almost everything
runs swimmingly. Aside from the modem and the limited mouse features, I
have no real complaints.
I was perfectly happy using the trackpoint (I love that thing) as a
three-button mouse until I happened upon the tp4d package - the linux
trackpoint utilities, whatever... Fantastic stuff, great work, etc. But
at that point I realized that I could use the z-axis of the trackpoint as
button2 and that would free up the wide middle button for usage in a
manner similar to the way the IBM program (I think it's just "daemon.exe")
uses the middle button for a "click/hold-to-scroll" function.
I have searched quite a bit on the 'net for info regarding this, but there
seems to be very little to go on aside from a few rather elusive hints
that others have done this.
What I would like is some method of making the middle button a "modifier"
such that, when it's held down and Y-axis info is sent, a
ButtonPress/ButtonRelease event would be sent for Button4/Button5,
depending on whether it was positive/negative Y-axis information.
On the other hand, just having imwheel interpret these events as somehow
different/unique would be enough. That way I could at least configure
netscape.
I've poked around the mozilla source a bit, and I have a couple ideas
about how to do this in a really, really sloppy manner, but I really don't
know where to start.
I must admit my C skills are negligible, and if you extend that to my
knowledge of kernel/X/gpm/imwheel programming, you'll get practically
nothing. :)
So if anyone on this list has heard of or knows about anyone who's done
this, or has any hints for doing this, then I would be greatly
appreciative.
Thanks in advance,
Michael Kroh
kroh@rectorseal.com
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html