On 10.3 and higher, you can open the HID interface to the trackball
exclusively. This will stop the system from reading the hid data and
moving the cursor. When you close the hid interface, the OS will
start using the trackball to move the cursor again.
You could also install a a codeless kext that matches the trackball
and prevents the IOHIDEventDriver from attaching to it. You want to
have the kext match the trackball to the IOHIDInterface driver. Then,
the trackball won't move the mouse at all, ever, and you can still
attach to it via HID and get the raw data.
Depending on what you need, the easiest thing may be to temporarily,
dissociate the mouse from the cursor. (See
CGAssociateMouseAndMouseCursorPosition) You would still get mouse
events, but you can turn on and off having those mouse events move
the cursor.
-raleigh
On Nov 13, 2005, at 4:20 PM, email@hidden wrote:
OK I started reading HID Class Device Interface Guide and also
downloaded the hid project. When I run it I see loads of data about
my mouse, trackball and tablet etc.
I can see that I could get the individual information about each
device, but what I need to know before going further is...
Will I be able to stop a trackball from being used to drive the
pointer? i.e. disconnect it from the window system and access it
exclusively.
Thanks,
Adam
On 13 Nov 2005, at 22:02, Uli Kusterer wrote:
Am 13.11.2005 um 18:54 schrieb email@hidden:
I would like to add a usb trackball(s) and access the x, y and
button data independently of the mouse.
i.e. disconnect it from driving the pointer.
Is this easy or difficult to achieve??
Every mouse event contains the mouse delta, so if you take the
time to read the docs, that's very easy.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden
-----------------------------------------------
Raleigh Ledet, <email@hidden>
Wacom Technology Corp.
Mac Software Engineer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden