This changes the AppleADBMouse.kext to conform to the
ADB Mouse standard protocol as defined by apple. It
allows standard mice to use 2 buttons (which is already
built into pearpc).
There are 2 parts to this patch:
1) there is the compiled patch (and src due to APSL
licencing). This is a tar.gz file. Extract this in osx.
Then in a console type:
"
sudo su -
cd /Path/To/Extracted/Kext/rightClickADBMouseDriver_0.1
chown -R root.wheel ./AppleADBMouse.kext
kextunload /System/Library/Extensions/AppleADBMouse.kext
kextload ./AppleADBMouse.kext
"
Make sure you dont move the mouse while this is doing
its thing (as it is replacing the mouse driver!). Yo
can ignor any warning messages saying the use of "." is
depricated. Each of the lines above is a different
command. The
"/Path/To/Extracted/Kext/rightClickADBMouseDriver_0.1"
is the the path where you extracted the tar.gz file.
If you know another way to replace a kext go for it,
that is all it is doing.
This will enable the right click function. However (at
least on windows) PearPC currently mapps a mac right
click to the middle mouse button. To fix that...
2) the use_right_click_for_kext.patch patch file should
be applied before compiling pearpc. All i does is
change the number 2 (middle button) to 3 (right button).
You do not need to use this patch, it will just mean
that you will have to middle click to make the mac
right click.
Again I would love to know if this works for you. Feel
free to PM me at forums.pearpc.net
thewer ;)
Edited KEXT to implement ADB Mousr protocol correctly
Change pearpc to use a right click rather than middle click for mac right click
Logged In: YES
user_id=1212069
One other thing. The above instructions only use the new
kext for the current system startup. If you shut down then
the old kext will be used. To change this you need to
physically copy the kext into the /System/Linrary/Extensions
folder and set the owner etc to root: "chown -R root.wheel
AppleADBMouse.kext". Remember you may need to use sudo to do
this. And it may be a good idea to back up the origional kext!!
thewer ;)
Logged In: YES
user_id=1235276
rightClickADBMouseDriver_0.1.tar.gz is coming up corrupt for me.
Logged In: YES
user_id=1212069
The tar.gz undid fine for me, soI un targz'ed it and wrapped
it up in a zip archive as well.
thewer ;)
Edited KEXT to implement ADB Mousr protocol correctly (zip rather than tar.gz)
Logged In: YES
user_id=3437
What's the middles/rightclick change good for?
Logged In: YES
user_id=1212069
The middle richt click change is to map the right mouse
button to the right click action.
Under windows (dont know about linux) button 1 is left, 2 is
middle and 3 is right. And in the cuda.cc it uses button 1 for
left and 2 for right.
The 2 lines (892 and 893):
"
if (!ev.mouse.button2) dx |= 0x80;
if (!ev.mouse.button1) dy |= 0x80;
"
Are changed so that the first becomes "if (!ev.mouse.button3)
dx |= 0x80;".
Like I said I dont know about linux but under winXP
SP1 "button2" is set when i do a middle click and "button3"
is set with a right click...
thewer ;)
Logged In: YES
user_id=3437
Ah, I understand! This was a problem of the win32 backend.
Fixed in trunk.
Thanks for your patch!
Logged In: YES
user_id=683128
I learned the hard way, you don't need to apply the
use_right_click_for_kext.patch because it has been fixed in
the trunk. Me can't read good. Thanks.
Logged In: YES
user_id=1212069
UPDATE:
I have inclused an installer and test script.
The installer.command will PERMINANTLY replace the kext!!
The test.command script will load the new kext. But
restarting will start with the origional kext!
You must unzip the zip file IN MAC OS X (not windows or linux).
ALSO:
The patch is no longer required if you you have a build from
CVS checked out AFTER 2005-03-17 11:05
enjoy...
thewer ;)
Kext + src + Install script + Test script