From: Benjamin Herrenschmidt <bh40@calva.net>
To: linuxppc-dev@lists.linuxppc.org
Cc: Paul Mackerras <paulus@cs.anu.edu.au>
Subject: [PATCH] Trackpad support for PowerBook
Date: Sat, 26 Dec 1998 18:46:04 +0100 [thread overview]
Message-ID: <19981226184604.028121@smtp.calvacom.fr> (raw)
In-Reply-To: <v04011700b2a7ddd993aa@[209.86.155.175]>
[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]
Enclosed is a patch to drivers/macintosh/mac_keyb.c which does the following:
- All mouse handlers IDs are changed to 4 or 2 if possible to enable
full features of most mice. Keyboards are changed to 3 or 5 (I think
those are the good handler IDs for extended keyboards but this could be
double checked)
- The PowerBook trackpad is detected and initialized to full features
(clicking, dragging and drag lock). I'll make a command line tool for
changing it's settings later via /dev/adb.
- Button 2 of the trackpad is "hacked" to be button 1 so that tapping
(button 2) and pressing the real button (button 1) do the same thing,
like MacOS. This behaviour could be improved to something configurable by
the user (maybe using tapping for button 1 and real button for button 2
?) but I don't know what is the best way to add a runtime-configurable
setting to mac_keyb.c... Maybe some special ioctls to adbmouse.c, but we
would have to export the configuration globals (or accessor functions)
from mac_keyb.c.
- Adds a placeholder function for the front-panel buttons of the
powerbook G3 series.
I think the patch can be included "as is" (after some testings of
course). The improvements can always be added later.
[-- Attachment #2: trackpad.patch.gz --]
[-- Type: application/octet-stream, Size: 1883 bytes --]
next prev parent reply other threads:[~1998-12-26 17:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-23 7:15 Re:Test kernels for chipsfb (2400/3400) David Ray
1998-12-23 9:00 ` Test " Benjamin Herrenschmidt
1998-12-24 12:23 ` Timothy A. Seufert
1998-12-24 17:27 ` Benjamin Herrenschmidt
1998-12-26 17:46 ` Benjamin Herrenschmidt [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-12-26 18:04 [PATCH] Trackpad support for PowerBook Benjamin Herrenschmidt
1998-12-26 18:08 Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19981226184604.028121@smtp.calvacom.fr \
--to=bh40@calva.net \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paulus@cs.anu.edu.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).