From: Mark Abene <phiber@radicalmedia.com>
To: linuxppc-user@lists.linuxppc.org, linuxppc-dev@lists.linuxppc.org
Subject: Re: TurboMouse fix
Date: Tue, 22 Dec 1998 13:29:04 -0500 [thread overview]
Message-ID: <19981222132904.J16123@radicalmedia.com> (raw)
In-Reply-To: <Pine.LNX.3.96.981221225654.1012A-100000@lazarus>; from john s jacobs anderson on Mon, Dec 21, 1998 at 11:03:14PM -0700
Three things:
1) mousehack is **ONLY** for TurboMouse 5.0 trackballs! Not two button 4.0's.
I had written a hack last year for my 4.0, but abandoned it when I got a 5.0.
The 4.0 would actually require kernel mods to the ADB code since the two buttons
send left and right arrow-key keycodes, and the kernel would have to recognize
that they were coming from a different ADB address in order to properly treat
them as mouse-button events. Otherwise, the kernel just thinks you have two
keyboards. At least in kernel 2.1.24, the adb code treats anything with
dev-handler 2 as a keyboard, which in this case is faulty logic.
2) You should NEVER edit source code with pico, since it breaks wrapped lines
which turns source code into useless mulch.
3) Did you type in your error messages by hand? The macro used in my program
is ADB_WRITEREG, with an underscore, not a hyphen. It's no shock that the
hyphenated version is undefined, as it don't exist.
-Mark
On Mon, Dec 21, 1998 at 11:03:14PM -0700, john s jacobs anderson wrote:
>
> <snip>
>
> system: 7500 chasis with 166 MHz 604 card, 2.1.127 kernel. Kensington
> TurboMouse 4.0 (the 2 button kind), window maker 0.20.3
>
> (do you need to know anything else? sorry, I'm still a wet behind the
> ears...)
>
> exported mail to ~, trimmed file in pico, then `cc mousehack.c`.
>
> gives :
> /tmp/cca082751.o: In function `sethandler':
> /tmp/cca082751.o(.text+0x148): undefined reference to `ADB-WRITEREG'
> (same error repeated at (.text+0x1dc) in function `moveadb'
> (.text+0x26c) in function `initreg2'
> (.text+0x364) in function `setreg2'
> collect2: ld returned 1 exit status
>
> ack! what now? I'm drooling at the thought of a functional 2 button mouse,
> and if it only ends up working with v5.0 TurboMice, Santa might have to
> make a late delivery...
>
> john.
> jacobs@treefort.org
> www.treefort.org/~jacobs/ <--- LinuxPPC notes'n'stuff...
>
...
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]
next prev parent reply other threads:[~1998-12-22 18:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-22 4:16 TurboMouse fix Tom Harrington
1998-12-22 6:03 ` john s jacobs anderson
1998-12-22 16:51 ` Tom Harrington
1998-12-22 21:59 ` john s jacobs anderson
1998-12-23 4:58 ` Tom Harrington
1998-12-23 5:24 ` john s jacobs anderson
1998-12-22 18:29 ` Mark Abene [this message]
1998-12-22 21:49 ` john s jacobs anderson
1998-12-22 6:11 ` FD_SET/FD_ZERO, vi clone compiling john s jacobs anderson
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=19981222132904.J16123@radicalmedia.com \
--to=phiber@radicalmedia.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=linuxppc-user@lists.linuxppc.org \
/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).